| Author: seema 07 Oct 2009 | Member Level: Gold | Rating:  Points: 2 |
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DoBinding(); } }
private void DoBinding() { DataSet ds = new DataSet(); ds.ReadXml(Server.MapPath("albums.xml")); this.GridView1.DataSource = ds; this.GridView1.DataBind(); }
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e) { this.GridView1.PageIndex = e.NewPageIndex; DoBinding(); } or refer this http://www.dotnetjohn.com/articles.aspx?articleid=159
|
| Author: khan asif 07 Oct 2009 | Member Level: Bronze | Rating:  Points: 2 |
if i have a structure like this then how to display the value of name and location..
<employees> <employee> <emp> <name>xxx</name> <location>yyy</location> </emp> </employee> <employees>
|
| Author: Alwyn 13 Oct 2009 | Member Level: Gold | Rating:  Points: 2 |
Khan,
<employees> <employee> <emp> <name>xxx</name> <location>yyy</location>
</emp> </employee> <employees>
this xml data is not well structured, this should be like
<employees> <employee> <name>xxx</name> <location>yyy</location> </employee> <employees>
if u make it like this, it will work...
Thanks & Regards, Alwyn Duraisingh.M
|