Skip to main content

Posts

interview

using System; using System.Web.UI; using  System.Data; using System.Data.SqlClient; using System.Data.Sql; using System.Web.Configuration; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page {    SqlConnection sqcon=new SqlConnection(WebConfigurationManager.ConnectionStrings["constr"].ConnectionString);     protected void Page_Load(object sender, EventArgs e)     {         if (!IsPostBack == true)         {             hdnval.Value = "I";             DiplayAllREcord();         }     }     protected void btnsubmit_onclick(object sender, EventArgs e)     {         ...

design html table in c#

            // Create a new HtmlTable object.             HtmlTable table1 = new HtmlTable();             // Set the table's formatting-related properties.             table1.Border = 1;             table1.CellPadding = 1;             table1.CellSpacing = 1;             table1.BorderColor = "red";             // Start adding content to the table.             HtmlTableRow row;             HtmlTableCell cell;       ...