Passing value between webpages

G

Guest

Hi i have a webpage which has datagrid with one column called customer ID..
that customer ID is hyperlink mean i a click that customer ID it open a web
page and display that customer ID on that page. is it possible to exchange
value between web pages like my code is

<asp:DataGrid id="DataGrid1" runat="server" Height="114px" Width="320px"
ShowFooter="True">
<Columns><asp:HyperLinkColumn DataNavigateUrlField="CustID"
DataNavigateUrlFormatString="javascript:var w
=window.open('/Goto.aspx?ID={0}',null,'width=400,height=400,location=no')"
DataTextField="CustID" SortExpression="CustID"
HeaderText="CustID"></asp:HyperLinkColumn>
</Columns>
thanks
</asp:DataGrid>
 
C

Curtis

I see the Goto.aspx?ID={0} query string. I assume the {0} is the CustID
value (BTW, this is not secure if that matters at all). Anyway, you can
save data to a Session variable and pick it up during postback in
Goto.aspx; unless you are not allowed to use Session variables.

Curtis
 
Joined
Jun 11, 2009
Messages
9
Reaction score
0
HTTP GET and HTTP POST in ASP.NET

Here is the good article that explains hows you can pass data between web pages.


http: // patelshailesh.com/index.php/pass-values-between-asp-net-web-pages

http: // patelshailesh.com/index.php/http-get-and-http-post-in-asp-net
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top