473,322 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Gridview cross-page postback

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
Mar 3 '06 #1
3 2762
You probably need to create a TemplateField and add a Button or LinkButton
to it to get the PostBackUrl property functionality.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Lupakkiotto" <ta***@despammed.com> wrote in message
news:46************@individual.net...
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

Mar 3 '06 #2
"Christopher Reed" <ca****@nospam.nospam> ha scritto nel messaggio
news:Ot**************@TK2MSFTNGP10.phx.gbl...
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??
Mar 3 '06 #3
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/).
"Lupakkiotto" wrote:
"Christopher Reed" <ca****@nospam.nospam> ha scritto nel messaggio
news:Ot**************@TK2MSFTNGP10.phx.gbl...
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??

Mar 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
4
by: GregG | last post by:
Greetings, I have been working with the new GridView control, and while figuring out most of it's idiosyncrasies on my own, have stumbled upon a problem I cannot seem to resolve. We have...
7
by: GaryDean | last post by:
I'm trying to load a GridView up with data manually, in code. I'm not using any datasource. Using this code.... ArrayList myRowArrayList; GridViewRow myGVR = new...
3
by: Jeff | last post by:
Hey asp.net 2.0 In the source I posted below, there is a GridView (look at the bottom of the script): <asp:GridView ID="gvwOnline" runat="server"> </asp:GridView> I'm trying to assign a...
1
by: =?Utf-8?B?Ukc=?= | last post by:
I am using dataview as a datasource to a gridview. The column definitions of gridview are different that of db table. When binding, how do you specify column cross reference? Thanks in advance
0
by: =?Utf-8?B?Ukc=?= | last post by:
I am using dataview as a datasource to a gridview. The column definitions of gridview are different than that of db table. When binding, how do you, programatically in c#, specify column cross...
1
by: spitapps | last post by:
In a traditional gridview control the items inserted(bind) into the control are rows and the data is in columns. I have a customer who wants the data fields as rows and the columns as the items...
0
by: sharonrao123 | last post by:
hello all, I have a parent gridview company and in this one a nested gridview people, Is it possible to allow the user to select one row or multiple rows from the people gridview using a check box...
6
by: RobertTheProgrammer | last post by:
Hi folks, Here's a weird problem... I have a nested GridView setup (i.e. a GridView within a GridView), and within the nested GridView I have a DropDownList item which has the...
5
by: Eric | last post by:
Hi, there are several gridviews all with a linkbutton which all trigger the same procedure. I need to know from which gridview the linkbutton has been clicked. Thanks Eric Here the code:
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.