Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / May 2007

Tip: Looking for answers? Try searching our database.

GridView Hyperlink column that includes unique id in query string

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frank Milverckowitz - 18 May 2007 22:06 GMT
Hi,

I'm trying to do something common and what should be simple using the
GridView "Add Columns" feature in Visual Studio 2005.

All I want to do is add a Hyperlink column that will take the user to
another aspx page for editing (I'm not using the built in edit feature
because I have too  many columns)

So, I've added a column  "Edit" and each row is a Hyperlink.  I want the
Hyperlink to take the user to an Edit page. When the user lands on the edit
page the controls will be populated based on data pulled from the database
given the UniqueID that I'm TRYING to pass on the hyperlink URL query
string.

For example:

go_to_edit_page.aspx?edit_this_id=1345

To set this up, there are a bunch of fields in the Visual Studio UI, and for
the Hyperlink I'm am not sure how to do this.

NavigateURL
DataNavigateURLFields (?)
DataNavigateURLFormatString ?
DataTextField ?
DataTextFormatString ?

I believe "{0}" needs to be used somewhere in one of these fields, then I
need to set the UniqueId field based on one of my data source parameters.

Thanks for any help.

Frank
Frank Milverckowitz - 18 May 2007 22:16 GMT
Found it, thanks anyway.

http://www.asp.net/learn/dataaccess/tutorial09vb.aspx?tabid=63

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.