Skip to main content

Posts

Showing posts from 2011

Creating Dynamic Tables in Code Behind File

Create Panel in .aspx.......                                                23-Sep-2011 <asp:Panel ID="pnTable" runat="server">     </asp:Panel> Code Behind File...... using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Data; using System.Configuration; public partial class DyanmicTable : System.Web.UI.Page {     string connection = Convert.ToString(ConfigurationManager.ConnectionStrings["Test"].ConnectionString);     protected void Page_Load(object sender, EventArgs e)     {         SqlConnection conn = new SqlConnection(connection);         SqlCommand sc = new SqlCommand("Test", conn);         sc.CommandType = CommandType.StoredProcedure;         conn.Open();         SqlDataAdapter sd = new SqlDataAdapter(sc);         DataSet ds = new DataSet();         sd.Fill(ds);         con

GridView Design Using CSS

 Create Css File in your Project...And Add Reference to Grid View page * {     padding: 0;     margin: 0; } body {     font: 11px Tahoma;     background-color: #F7F7E9; } h1 {     font: bold 32px Times;     color: #666;     text-align: center;     padding: 20px 0;    } #container {     width: 700px;     margin: 10px auto; } .mGrid  {     width: 100%;     background-color: #fff;     margin: 5px 0 10px 0;     border: solid 1px #525252;     border-collapse:collapse; } .mGrid td {    padding: 2px;    border: solid 1px #c1c1c1;    color: #717171; } .mGrid th {     padding: 4px 2px;     color: #fff;     background: #424242 url(grd_head.png) repeat-x top;     border-left: solid 1px #525252;     font-size: 0.9em; } .mGrid .alt {     background: #fcfcfc url(grd_alt.png) repeat-x top; } .mGrid .pgr {     background: #424242 url(grd_pgr.png) repeat-x top; } .mGrid .pgr table {     margin: 5px 0; } .mGrid .pgr td {     border-width: 0;     p

Constructors

http://www.c-sharpcorner.com/UploadFile/puranindia/LearningConstructorsInC-sharp05182009044452AM/LearningConstructorsInC-sharp.aspx Constructors Constructors are class methods that are executed when an object of a given type is created. Constructors have the same name as the class, and usually initialize the data members of the new object. What is constructor?     *       Constructor is used to initialize an object (instance) of a class.     *       Constructor is a like a method without any return type.     *       Constructor has same name as class name.     *       Constructor follows the access scope (Can be private, protected, public, Internal and external).     *       Constructor can be overloaded. Constructors generally following types :     *       Default Constructor     *       Parameterized constructor     *       Private Constructor     *       Static Constructor     *       Copy Constructor The constructor goes out of scope after initializi

Asp.Net

ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites , web applications and web services .ASP.NET is built on the Common Language Runtime (CLR), allowing programmers to write ASP.NET code using any supported .NET language . The ASP.NET SOAP extension framework allows ASP.NET components to process SOAP messages.

Raghu Test

Hi simple test Grid View Examples Events Examples http://www.codeproject.com/KB/aspnet/GridViewEventHandling.aspx