GridView Hyperlink column that includes unique id in query string

  • Thread starter Frank Milverckowitz
  • Start date
F

Frank Milverckowitz

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top