. aspx page
 
Code File:

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Data.SqlClient ;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class DetailsView : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            BindDetails();
    }
    public void BindDetails()
    {
        SqlConnection con = new SqlConnection("trusted_connection=true;database=FormDB");
        SqlDataAdapter da = new SqlDataAdapter("select * from table1", con);
        DataSet ds = new DataSet();
        da.Fill(ds);
        DetailsView1.DataSource = ds;
        DetailsView1.DataBind();
    }
    public void DetailView1_PageIndexChanging(object sender, DetailsViewPageEventArgs e)
    {
        DetailsView1.PageIndex = e.NewPageIndex;
        BindDetails();
    }
}

Source File:

<asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px"
            AllowPaging="True" OnPageIndexChanging="DetailView1_PageIndexChanging">
        </asp:DetailsView>

Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement
Corporate Services
  Web Design and development
  Web Promotion (SEO)
  Multimedia/CD Presentation
  Software development

  E.Commerce

Training@balujalabs

  Software Courses
  Hardware Courses
  Networking.Courses
  Mobile Repairing Courses
  UGC Degrees
Student Corner
 Programming & Projects
 Placement Papers
 Project Ideas
 Synopsis Ideas

  Franchise Section

 Administrator
Franchise Inquiry
 
 

DETAILS VIEW

 

 

 

 

 

 

 




1 INSERTING RECORDS IN SQL SERVER
2 DISPLAY RECORD OF DATABASE IN GRIDVIEW
3 UPDATE RECORD OF DATABASE
4 DELETE RECORD OF DATABASE
5 DROP DWON LIST BINDING FROM DATA BASE
6 RADIO BUTTON LIST BINDING FORM DATABASE
7 CHECK BOX LIST BINDING FROM DATA BASE
8 LIST BOX BINDING FORM DATA BASE
9 DROP DWON LIST
10 RADIO BUTTON LIST
11 CHECKBOX LIST
12 LIST BOX
13 EDITING DATA IN GRID
14 CRYSTAL REPORT
15 DISPLAYING DATA OF XML FILE
16 INSERTING RECORD IN XML FILE
17 LOGIN PAGE
18 REPEATER
19 DATA LIST
20 DATALIST CONTROL 1
21 DETAILS VIEW
22 FORM VIEW

 


     
Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement