Re: Need Suggestion
- From: "Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN@xxxxxxxxxxxx>
- Date: Tue, 1 Jan 2008 12:37:51 +0200
One way is to do Server.Transfer to the user info page on server side.
The link on the grid will fire just a postback, perhaps a RowCommand event,
the server will find what row fired the event, get the user id from the row,
put it in a session variable and transfer to the info page.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Jonathan Wood" <jwood@xxxxxxxxxxxxxxxx> wrote in message
news:O59hPIATIHA.5288@xxxxxxxxxxxxxxxxxxxxxxx
Greetings,
My app displays users in a GridView control. I'd like to have the name
field shown in each row of this control a link that displays another page
with information about that user.
But I'm not sure how to approach this. How would I tell the target page
which user to display? I'd prefer not to pass the user's ID on the URL,
and I don't know when I'd get a chance to set a Session variable.
I know I can add a template with a link but, if I set an event handler for
that link, how does it know which row was selected?
Thanks for any tips.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
.
- Follow-Ups:
- Re: Need Suggestion
- From: Jonathan Wood
- Re: Need Suggestion
- References:
- Need Suggestion
- From: Jonathan Wood
- Need Suggestion
- Prev by Date: Re: How to read from data list it value into a label?
- Next by Date: Where is HTML Tidy
- Previous by thread: Need Suggestion
- Next by thread: Re: Need Suggestion
- Index(es):
Relevant Pages
|