.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> ASP.NET >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Display Grid Selected Row Values and Show Data From XML File

Posted By:Sasi Prabhu       Posted Date: June 08, 2011    Points: 200    Category: ASP.NET    URL: http://www.dotnetspark.com  

This Article is Used to Display the value from GridView Selected Row. Bind the Values From XML File to GridView.
 


Get Gridview Row Values By Using AutoGenerateSelect Button.




Steps :

Insert a GridView into Webpage.
Set the Property of GridView - AutoGenerateSelectButton -> True.

To Get the GridView Value Type the Coding in SelectedIndexChanged Event as

Response.Write(GridView1.SelectRow.Cells[1].Text);

To Show the XML File Data :

Use the Code as

ds.ReadXML(Server.MapPath("XMLFileName.xml"));


 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend