List Headline Image
Updated by Sunny Bansal on Jul 27, 2014
 REPORT
Sunny Bansal Sunny Bansal
Owner
16 items   1 followers   10 votes   2 views

Code Expert

This blog for learn the .net

Code Expert

Step 1 Create the Design &lthtml xmlns="" data-longurl="http://www.w3.org/1999/xhtml">" >http://www.w3.org/1999/xhtml"> &lthead runat="server"> &lttitle> &lt/head> &ltbody> &ltform id="form1" runat="server"> &ltdiv> Employee Id &ltasp:TextBox ID="TextBox1" runat="server"> Employee Name&ltasp:TextBox ID="TextBox2" runat="server"> Employee Father Name&ltasp:TextBox ID="TextBox3" runat="server"> &ltasp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Save Data" /> &lt/div> &lt/form> &lt/body> &lt/html> Step 2 Double click on button Step 3 Add

Code Expert

Step 1 Create the Design &lthtml xmlns="" data-longurl="http://www.w3.org/1999/xhtml">" >http://www.w3.org/1999/xhtml"> &lthead runat="server"> &lttitle> &lt/head> &ltbody> &ltform id="form1" runat="server"> &ltdiv> Employee Id &ltasp:TextBox ID="TextBox1" runat="server"> Employee Name&ltasp:TextBox ID="TextBox2" runat="server"> Employee Father Name&ltasp:TextBox ID="TextBox3" runat="server"> &ltasp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Save Data" /> &lt/div> &lt/form> &lt/body> &lt/html> Step 2 Double click on button Step 3 Add

Code Expert

Step 1 Create the Design &lthtml xmlns="" data-longurl="http://www.w3.org/1999/xhtml">" >http://www.w3.org/1999/xhtml"> &lthead runat="server"> &lttitle> &lt/head> &ltbody> &ltform id="form1" runat="server"> &ltdiv> Employee Id &ltasp:TextBox ID="TextBox1" runat="server"> Employee Name&ltasp:TextBox ID="TextBox2" runat="server"> Employee Father Name&ltasp:TextBox ID="TextBox3" runat="server"> &ltasp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Save Data" /> &lt/div> &lt/form> &lt/body> &lt/html> Step 2 Double click on button Step 3 Add

Code Expert

lthead runat="server"&gt &lttitle&gt&lt/title&gt &ltscript language="JavaScript" type="text/javascript"&gt function CountLeft(field, count, max) { if (field.value.length > max) field.value = field.value.substring(0, max); else count.value = max - field.value.length; } &lt/script&gt &lt/head&gt &ltbody&gt &ltform name="form1" runat="server"&gt &ltasp:TextBox ID="numberenter" MaxLength="100" runat="server" onKeyDown="CountLeft(numberenter,count,100);" onKeyUp="CountLeft(numberenter,count,100);"> &lt/asp:TextBox&gt &ltasp:TextBox ID="count" runat="server" Text="100" Enabled="false" Width="29px"&gt&lt/asp:TextBox&gtcharcter remaining &lt/form&gt &lt/body&gt &lt/html&gt

Code Expert

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(); } }

Code Expert

Step 1. Create the table with below mention field create table Image ( imageid int indentity , imagename varchar, Snap image ) Step 2.

Code Expert

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.

Code Expert

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.

Code Expert

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.

Code Expert

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.

Code Expert

Step 1. Add New Form Step 2. Add Repeater on Web Form Step 3.

Code Expert

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

Code Expert: Create Primary Key and foreign key

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.

Code Expert: Create table in sql server

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.

Code Expert: .Net Framework Architecture

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.

Code Expert: What is .net

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.