Nishant Arora
What is purpose of DataBind method in ASP.NET?
By Nishant Arora in ASP.NET on Nov 26 2012
  • Santosh Kumar
    May, 2016 31

    Use the DataBind() method to bind data from a data source such as Dataset.

    • 1
  • Sunil Babu
    Apr, 2016 2

    DataBind method in ASP.NET to bind data to dataset.

    • 1
  • Neena M
    Dec, 2012 10

    The purpose of databind is to bind the data so as to display i.e string query1 = "Select * from Links";SqlConnection con1 = new SqlConnection(strcon);SqlCommand cmd1 = new SqlCommand(query1, con1);SqlDataReader sdr1;con1.Open();sdr1 = cmd1.ExecuteReader();gridLink.DataSource = sdr1;gridLink.DataBind();con1.Close();

    • 0
  • Neena M
    Dec, 2012 10

    The purpose of databind is to bind the data so as to display i.e string query1 = "Select * from table_name"; SqlConnection con1 = new SqlConnection(strcon); SqlCommand cmd1 = new SqlCommand(query1, con1); SqlDataReader sdr1; con1.Open(); sdr1 = cmd1.ExecuteReader(); gridView1.DataSource = sdr1; gridView1.DataBind(); con1.Close();

    • 0
  • Manoj Kumar
    Nov, 2012 29

    to bind data eg. gridview1.datasource=dataset;gridview1.dataBind();

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS