By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,910 Members | 1,036 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,910 IT Pros & Developers. It's quick & easy.

Passing Values

P: n/a
Hi

I have two aspx pages in a frame and in the top page[top frame] i am
creating the controls[TextBox etc..] dynamically and putting in a place
holder. I have a hyperlink in this page[top frame] to populate the data in
the bottom aspx page[bottom frame]. When the user clicks this hyperlink i
need to populate the bottom aspx page[bottom aspx page]based on the user
imputs. So i need to pass the values from the top aspx page [top frame] to
bottom aspx page[bottom frame]. how can i achieve this. Please give some
ideas...
Thanks in Advance
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Since these are just aspx pages, you should be able to the querystring, or
session variables to pass data between the 2 pages.
"Gibs" <do*********@yahoo.com> wrote in message
news:uH**************@TK2MSFTNGP09.phx.gbl...
Hi

I have two aspx pages in a frame and in the top page[top frame] i am
creating the controls[TextBox etc..] dynamically and putting in a place
holder. I have a hyperlink in this page[top frame] to populate the data in
the bottom aspx page[bottom frame]. When the user clicks this hyperlink i
need to populate the bottom aspx page[bottom aspx page]based on the user
imputs. So i need to pass the values from the top aspx page [top frame] to
bottom aspx page[bottom frame]. how can i achieve this. Please give some
ideas...
Thanks in Advance

Nov 18 '05 #2

P: n/a
I am using the hyperlink only to redirect the page. more if i am doing a
postback these text box values are not visible.I am getting an error 'Object
reference not set to an instance of an object'. So i am not able to set the
session also.
"Showjumper" <sh*******@grkjashdjkf.com> wrote in message
news:uH**************@TK2MSFTNGP10.phx.gbl...
Since these are just aspx pages, you should be able to the querystring, or
session variables to pass data between the 2 pages.
"Gibs" <do*********@yahoo.com> wrote in message
news:uH**************@TK2MSFTNGP09.phx.gbl...
Hi

I have two aspx pages in a frame and in the top page[top frame] i am
creating the controls[TextBox etc..] dynamically and putting in a place
holder. I have a hyperlink in this page[top frame] to populate the data in the bottom aspx page[bottom frame]. When the user clicks this hyperlink i need to populate the bottom aspx page[bottom aspx page]based on the user imputs. So i need to pass the values from the top aspx page [top frame] to bottom aspx page[bottom frame]. how can i achieve this. Please give some
ideas...
Thanks in Advance


Nov 18 '05 #3

P: n/a
> I am using the hyperlink only to redirect the page. more if i am doing a
postback these text box values are not visible.I am getting an error 'Object reference not set to an instance of an object'. So i am not able to set the session also.
The error probably means that you ar using a tag like <asp:Textbox
id="txtPipo"> in your aspx file but you do not declare a matching Textbox
object in your codebehind file like

Textbox txtPipo;

As for passing information, you can append all the data as name-value pairs
to the target url you pass to the redirect statement like

http:/someservername?name=pipo%20%address=woonwagen%20%o ccupation=clown

and then retrieve them through Request.QueryString as Showjumper already
suggested.

"Showjumper" <sh*******@grkjashdjkf.com> wrote in message
news:uH**************@TK2MSFTNGP10.phx.gbl...
Since these are just aspx pages, you should be able to the querystring, or session variables to pass data between the 2 pages.
"Gibs" <do*********@yahoo.com> wrote in message
news:uH**************@TK2MSFTNGP09.phx.gbl...
Hi

I have two aspx pages in a frame and in the top page[top frame] i am
creating the controls[TextBox etc..] dynamically and putting in a place holder. I have a hyperlink in this page[top frame] to populate the data in the bottom aspx page[bottom frame]. When the user clicks this
hyperlink i need to populate the bottom aspx page[bottom aspx page]
based on the user imputs. So i need to pass the values from the top
aspx page [top frame] to bottom aspx page[bottom frame]. how can
i achieve this. Please give some ideas...

Nov 18 '05 #4

P: n/a
You can pass some values via client side code to a control (or hidden
control) in your other frame.
Here's some javascript code that might do the trick for you:
parent.FRAMENAME.document.form1.myhiddentextbox.va lue='test';

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Gibs" <do*********@yahoo.com> wrote in message
news:uH**************@TK2MSFTNGP09.phx.gbl...
Hi

I have two aspx pages in a frame and in the top page[top frame] i am
creating the controls[TextBox etc..] dynamically and putting in a place
holder. I have a hyperlink in this page[top frame] to populate the data in
the bottom aspx page[bottom frame]. When the user clicks this hyperlink i
need to populate the bottom aspx page[bottom aspx page]based on the user
imputs. So i need to pass the values from the top aspx page [top frame] to
bottom aspx page[bottom frame]. how can i achieve this. Please give some
ideas...
Thanks in Advance

Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.