• Differences between application and session

    Application variable which remain common for the whole application (your website). Application variable’s value used in whole application. Application state allows you to store global objects that can be accessed by any client. The example of the application variable is site user count. Session variable which are common for whole application but for particular user.…


  • Create Thumb Image In Asp.net

    here is the steps: 1) create the simple web application (Asp.net using C#). Add Name Space using System.IO 2) put the image file in to the application (here i used Sunset.jpg it’s resolution is (800 ,600)). 3) put the one button (id =btnGenerateThumbImage) 4) put the below code in to the click event of the…


  • scrollable gridview in asp.net

    Steps: 1) Create Simple Web Application Using Asp.net (with C#). 2) put the below control on the form. or copy the below code and paste in to application. Control Id Set Style Of Control GridView GridView1 Panel other style=”width:100px;” Panel pnlGrid style=”overflow:auto;height:200px;width:100px;” <asp:Panel ID=”other” runat=”server” style=”width:100px;” > </asp:Panel> <asp:Panel ID=”pnlGrid” runat=”server” style=”overflow:auto;height:200px;width:100px;” > <asp:GridView ID=”GridView1″…


  • Create Template In DotNet

    Microsoft Visual Studio Provided the inbuilt facility to create Template.I just Explain how to use that thing. Steps: 1) Create Simple Web Application (Asp.net with C#). now Open the File Menu and Check Whether Export Template Exist there.if Export Template Option there then skip the step2. ( Figure 1) 2) if the Export Template Option…


  • Insert Null Value in DateTime Column SqlServer 2005 using asp.net

    steps: 1) Create Simple web application (asp.net with C#). 2) create below table in the database. here i made table (table_1 in test database). DataBase Name :Test Table Name : Table_1 ColumnName ColumnDataType id int (Auto Increment & Primary Key) code varchar(50) (Allow Null True) date datetime (Allow Null True) 3) put the below control…


  • CheckBox Column In GridView handled using Client-Site Script (Javascript)

    Purpose: handled the check box check event without postback using javascript and save the id in the hidden field. in the above “fig1” user selected the check one by one. after the selection of all the check box the header is selected which is described in the “fig2”. now user is changed the page index…


  • Gridview Inside a GridView in ASP.net 2.0

    Steps: 1) create the simple web application (asp.net with C#). Description : here we create the application which display the student information with result. the student got marks out of 100. if student get less then 40 then fail(indicating with Red Row). if user got above 70 in each subject then distinction (indicating with Green…


  • Inserting New Row in GridView in Asp.net 2.0

    steps: 1) Create the simple web application (asp.net with C#). 2) Create new table (User) in your database. Column Name Data Type UserId int (Pk and AutoIncrement) UserName varchar(50) Address1 varchar(50) EmailAddress varchar(50) 3) In your application (.aspx file) put the below code. we have first true the property of gridview (ShowFooter) and put the…


  • Filter Column data in a gridview using ASP.net

    steps : 1) Create the simple Web application (ASP.Net with c#). 2) put the open the page (default.aspx) and put the below code in to that. <div> <asp:Panel ID=”pnlDisplay” runat=”server” BackColor=”GradientInactiveCaption” BorderStyle=”Solid” Font-Size=”Larger” ForeColor=”#E0E0E0″ Width=”701px”> <center>Filter In GridView </center> </asp:Panel> <br /> <asp:GridView ID=”GridView1″ runat=”server” AutoGenerateColumns=”False” DataKeyNames=”UserID” CellPadding=”4″ ForeColor=”#333333″ GridLines=”None”> <Columns> <asp:TemplateField HeaderText=”UserID” InsertVisible=”False” SortExpression=”UserID”>…