Gridview cross-page postback

L

Lupakkiotto

HI!
Is it possible for a select command in a gridview to cross-page postback?
How to do it? I don't find a postbarckURL property...
Thank you in advance.
Marco
 
C

Christopher Reed

You probably need to create a TemplateField and add a Button or LinkButton
to it to get the PostBackUrl property functionality.
 
L

Lupakkiotto

Christopher Reed said:
You probably need to create a TemplateField and add a Button or LinkButton
to it to get the PostBackUrl property functionality.


That's ok.
But, how can I know the selectedvalue of the gridview when I click on that
button??
 
G

Guest

You can to create a "HyperLinkField" and assign it properties like this:

<asp:HyperLinkField DataTextField="Data" DataNavigateUrlFields="id"
DataNavigateUrlFormatString="~/MonitoringPages/Mon.aspx?Id={0}"
target="_blank" />

In the target page you can get the "id" value using the
"HttpRequest.QueryString" property.

Alexey Borzenkov (http://alexborzenkov.iespana.es/).
 

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

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top