C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » ASP.NET GridView »

Pass Multiple Query String using HyperLinkField in asp.net


Posted Date: 01 Nov 2008    Resource Type: Code Snippets    Category: ASP.NET GridView
Author: Sujit KumarMember Level: Diamond    
Rating: 1 out of 5Points: 3



You can pass single/multiple query string using HyperLInkField

Pass data field name in DataNavigateUrlFields which you wnat to pass value in query string
ex:

DataNavigateUrlFields="subject,query"

Here subject and query both are differenct data field those are comming from database.

and write the page name in DataNavigateUrlFormatString where you want to pass query string value.

ex:

DataNavigateUrlFormatString = "~/Pages/default.aspx?UserName={0}&GameTitle={1}"

<asp:HyperLinkField HeaderText="View Details" DataNavigateUrlFields="subject,query" DataNavigateUrlFormatString = "~/Pages/default.aspx?UserName={0}&GameTitle={1}" Text="View" />


For more details, visit http://sujitkumar.wordpress.com/2008/11/01/httpsujitkumarwordpresscom20081101pass-multiple-query-string-using-hyperlinkfield-in-gridview/




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Pass multiple query string using HyperLinkField in Gridview  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Gridview add update
Previous Resource: Edit,Update,Cancel,Delete and multiple checkbox select to delete in vs2003 DataGrid?
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET GridView


Post resources and earn money!
 
Related Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use