473,413 Members | 2,066 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,413 software developers and data experts.

Passing value between webpages

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,locat ion=no')"
DataTextField="CustID" SortExpression="CustID"
HeaderText="CustID"></asp:HyperLinkColumn>
</Columns>
thanks
</asp:DataGrid>
Jun 5 '06 #1
3 2204
"amjad" <am***@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
is it possible


What happened when you tried...?
Jun 5 '06 #2
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

amjad wrote:
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,locat ion=no')"
DataTextField="CustID" SortExpression="CustID"
HeaderText="CustID"></asp:HyperLinkColumn>
</Columns>
thanks
</asp:DataGrid>


Jun 5 '06 #3

can you show me the code how to use session variable to get that value thanks
"Curtis" wrote:
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

amjad wrote:
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,locat ion=no')"
DataTextField="CustID" SortExpression="CustID"
HeaderText="CustID"></asp:HyperLinkColumn>
</Columns>
thanks
</asp:DataGrid>


Jun 6 '06 #4

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

Similar topics

8
by: Alex Vinokur | last post by:
Various forms of argument passing ================================= C/C++ Performance Tests ======================= Using C/C++ Program Perfometer...
3
by: Song Zhang | last post by:
I have two webpage, one is http://appA.mycompany.com/first.html and the other is http://appB.mycompany.com/second.html When a user visits first.html, he may click a button A, which launches...
12
by: Patrick | last post by:
I have two ASP pages payment.asp: For customers to fill in payment/card details (pre-populating details if details submitted were invalid and user had to re-fill in details) confirmorder.asp:...
58
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of...
3
by: Yul | last post by:
Hi, We are in the process of designing an ASP.NET app, where a user will enter some 'Customer ID' to be queried in the database. If the ID is valid, several stored procedures will be called to...
12
by: scsharma | last post by:
Hi, I am working on creating a webapplication and my design calls for creating main webform which will have menu bar on left hand side and a IFrame which will contain all the forms that are shown...
6
by: MSDNAndi | last post by:
Hi, I get the following warning: "Possibly incorrect assignment to local 'oLockObject' which is the argument to a using or lock statement. The Dispose call or unlocking will happen on the...
12
by: Andrew Bullock | last post by:
Hi, I have two classes, A and B, B takes an A as an argument in its constructor: A a1 = new A(); B b = new B(a1);
7
by: TS | last post by:
I was under the assumption that if you pass an object as a param to a method and inside that method this object is changed, the object will stay changed when returned from the method because the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.