Web Dev Matters and Me

Web Development Matters - HTML, XML, C#, .NET, AJAX/Javascript(jQuery), CSS, XML-XSLT

ME - LIFE,Philippines, Tokyo, ECE, PhilNITS/JITSE,情報処理, 日本語

things about Philippines, gaming, C# development and web development, how to make money in stock trading

Web Dev Matters and Me

ASP.NET: Properly Setting Hyperlinks in Gridview

When selecting data fields, one must properly specify these required properties.

DataNavigateUrlFields - fields that will be used as an input to the

DataNavigateUrlFormatString - formating of the URL

ex - page.aspx?id={0}, where {0} is the value of DataNavigateUrlField you specified.

DataTextField - the data to display. You may choose to specify data from database here, or some static text.


Oftentimes, I bind these things with AJAX methods and properly setting it up is one of the requirements I need to do. I just remembered my old days where I let javascript navigate all rows which is not practical and also time consuming.

0 comments:

FB Connect