Listly by Sunny Bansal
This blog for learn the .net
Step 1 Create the Design <html xmlns="" data-longurl="http://www.w3.org/1999/xhtml">" >http://www.w3.org/1999/xhtml"> <head runat="server"> <title> </head> <body> <form id="form1" runat="server"> <div> Employee Id <asp:TextBox ID="TextBox1" runat="server"> Employee Name<asp:TextBox ID="TextBox2" runat="server"> Employee Father Name<asp:TextBox ID="TextBox3" runat="server"> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Save Data" /> </div> </form> </body> </html> Step 2 Double click on button Step 3 Add
Step 1 Create the Design <html xmlns="" data-longurl="http://www.w3.org/1999/xhtml">" >http://www.w3.org/1999/xhtml"> <head runat="server"> <title> </head> <body> <form id="form1" runat="server"> <div> Employee Id <asp:TextBox ID="TextBox1" runat="server"> Employee Name<asp:TextBox ID="TextBox2" runat="server"> Employee Father Name<asp:TextBox ID="TextBox3" runat="server"> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Save Data" /> </div> </form> </body> </html> Step 2 Double click on button Step 3 Add
Step 1 Create the Design <html xmlns="" data-longurl="http://www.w3.org/1999/xhtml">" >http://www.w3.org/1999/xhtml"> <head runat="server"> <title> </head> <body> <form id="form1" runat="server"> <div> Employee Id <asp:TextBox ID="TextBox1" runat="server"> Employee Name<asp:TextBox ID="TextBox2" runat="server"> Employee Father Name<asp:TextBox ID="TextBox3" runat="server"> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Save Data" /> </div> </form> </body> </html> Step 2 Double click on button Step 3 Add
lthead runat="server"> <title></title> <script language="JavaScript" type="text/javascript"> function CountLeft(field, count, max) { if (field.value.length > max) field.value = field.value.substring(0, max); else count.value = max - field.value.length; } </script> </head> <body> <form name="form1" runat="server"> <asp:TextBox ID="numberenter" MaxLength="100" runat="server" onKeyDown="CountLeft(numberenter,count,100);" onKeyUp="CountLeft(numberenter,count,100);"> </asp:TextBox> <asp:TextBox ID="count" runat="server" Text="100" Enabled="false" Width="29px"></asp:TextBox>charcter remaining </form> </body> </html>
private string ConvertSortDirectionToSql(SortDirection sortDirection) { string newSortDirection = String.Empty; switch (sortDirection) { case SortDirection.Ascending: newSortDirection = "ASC"; break; case SortDirection.Descending: newSortDirection = "DESC"; break; } return newSortDirection; } protected void Gridview2_Sorting(object sender, GridViewSortEventArgs e) { DataTable dataTable = Gridview2.DataSource as DataTable; if (dataTable != null) { DataView dataView = new DataView(dataTable); dataView.Sort = e.SortExpression + " " + ConvertSortDirectionToSql(e.SortDirection); Gridview2.DataSource = dataView; Gridview2.DataBind(); } }
Step 1. Create the table with below mention field create table Image ( imageid int indentity , imagename varchar, Snap image ) Step 2.
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; public partial class Upload : System.Web.UI.Page { protected void PageLoad(object sender, EventArgs e) { } protected void btnuploadClick(object sender, EventArgs e) { if (FileUpload1.HasFile) { if (filecheck(FileUpload1.FileName)) { System.Drawing.Image UploadedImage = System.Drawing.Image.FromStream(FileUpload1.PostedFile.InputStream); if (UploadedImage.PhysicalDimension.Width != 250 || UploadedImage.PhysicalDimension.Height != 300) { Response.Write("Image size should be exactly 250*300 dimension.
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; public partial class Upload : System.Web.UI.Page { protected void PageLoad(object sender, EventArgs e) { } protected void btnuploadClick(object sender, EventArgs e) { if (FileUpload1.HasFile) { if (filecheck(FileUpload1.FileName)) { System.Drawing.Image UploadedImage = System.Drawing.Image.FromStream(FileUpload1.PostedFile.InputStream); if (UploadedImage.PhysicalDimension.Width != 250 || UploadedImage.PhysicalDimension.Height != 300) { Response.Write("Image size should be exactly 250*300 dimension.
get all .net topics and step .net developer.here you can get the web based projects topics and software projects topics. you can get all the data regarding dot net training or development.
get all .net topics and step .net developer.here you can get the web based projects topics and software projects topics. you can get all the data regarding dot net training or development.
Step 1 Create table with primary key create table StudentDetail ( Rollno int primary key, Name varchar(50) ) // Step 2 Create two tables with foreign key and cascade create table AttendenceDetail ( Date Datetime, Attendence varchar(50), Rollno int foreign key references StudentDetail(Rollno) //creation of foreign key on delete cascade
get all .net topics and step .net developer.here you can get the web based projects topics and software projects topics. you can get all the data regarding dot net training or development.
get all .net topics and step .net developer.here you can get the web based projects topics and software projects topics. you can get all the data regarding dot net training or development.
get all .net topics and step .net developer.here you can get the web based projects topics and software projects topics. you can get all the data regarding dot net training or development.
get all .net topics and step .net developer.here you can get the web based projects topics and software projects topics. you can get all the data regarding dot net training or development.