MVC4 Razor : How to get the value from view to controller
MVC4 Razor : How to get the value from view to controller ? Explanation : Here i explain how to get the value from html razor control (view) to controller Code in View: @using (Html.BeginForm())
Adding Javascript and css file in MVC
Adding Javascript and css file in MVC Here let we saw how to add .js and css file in mvc Step 1 : Add Script (.js)/(.css) file under the script folder Step 2 : Include
create user control and how to use from toolbar
Let we saw how to create user control and how to use from toolbar Step 1: Right Click and Add —> NewItem–>Usercontrol.cs Step 2: Click “Ok” , And Place the Collection of controls to make
Create Captcha using DLL
Here we discuss about how to create Captcha using DLL .aspx File <%@ Register Assembly=”MSCaptcha” Namespace=”MSCaptcha” TagPrefix=”cc1″ %> <form id=”form1″ runat=”server”> <div> <cc1:CaptchaControl ID=”Captcha1″ runat=”server” CaptchaBackgroundNoise=”Low” CaptchaLength=”5″ CaptchaHeight=”60″ CaptchaWidth=”200″ CaptchaLineNoise=”None” CaptchaMinTimeout=”5″ CaptchaMaxTimeout=”240″ FontColor = “#529E00″
Code shows how to zip while uploading the file.
This code shows how to zip while uploading the file. Need to include System.IO.Compression namespace to zip the upload files. In click event write the below code. using System.IO.Compression; using System.IO; protected void btnUpload_Click(object sender,
Custom Paging with Numbers
Custom Paging with Numbers =========================== .aspx ====== <div> PageSize: <asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="true" OnSelectedIndexChanged="PageSize_Changed"> <asp:ListItem Text="10" Value="10" /> <asp:ListItem Text="25" Value="25" /> <asp:ListItem Text="50" Value="50" /> <asp:ListItem Text="75" Value="75" /> </asp:DropDownList> <hr /> <asp:GridView ID="gvCustomerDetails"
set get
Let us see the SET , GET with simple explanation GET The body of the get accessor is similar to that of a method. It must return a value of the property type. SET The
The data source does not support server-side data paging.
Error : The data source does not support server-side data paging. Description: Error message occure while binding the result set to the Gridview using LINQ Query as like below gvDetails.DataSource = details Reason : We