Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using FindControl with a GridView
Message
From
16/04/2007 20:28:21
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Using FindControl with a GridView
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01216554
Message ID:
01216554
Views:
73
I have a gridview with a HyperLink column - how can I convert this to a LinkButton?

Currently the URL from the hyperlink causes the page to reload different information in a separate section. I am converting this to a partial postback - for this to work I need to use a POST operation rather than a link.

The problem I have is how exactly do I detect the ID from the element in the grid as I no longer have a QueryString like ?id=1 to work with.

I have set up a CommandName on the button and hooked up the RowCommand event on the back end - but I can't see how to get the ID?
- Craig

"If you're not prepared to be wrong, you will never come up with anything original."
- Sir Ken Robinson
Reply
Map
View

Click here to load this message in the networking platform