Form view
How to bind form view through table?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khargesh RajputPosted Apr 20, 2015, 1:04 AM
Name
Age
<%# Eval("Name")%>
<%# Eval("Age")%>
protected void Page_Load(object sender, EventArgs e)
{
DataTable dt = new DataTable();
dt.Columns.Add("Name");
dt.Columns.Add("Age");
DataRow dr = dt.NewRow();
dr.ItemArray = new Object[] { "A", "10" };
dt.Rows.Add(dr);
dr = dt.NewRow();
dr.ItemArray = new Object[] { "B", "20" };
dt.Rows.Add(dr);
this.FormView1.DataSource = dt;
this.FormView1.DataBind();
}
http://www.aspnettutorials.com/tutorials/database/formviewdata-csharp/
http://www.dotnetfunda.com/tutorials/controls/formview.aspx
Saineshwar BageriPosted Apr 20, 2015, 1:01 AM
http://dotnet-sai.blogspot.in/p/all-gridview-example.html