Reference controls on different pages

  • Thread starter Thread starter Chris
  • Start date Start date
Normally you don't. Unless you have frames or some other special scenario,
the pages don't live in the same time. They live one after another.
 
So it's back to querystrings etc :)

Eliyahu Goldin said:
Normally you don't. Unless you have frames or some other special scenario,
the pages don't live in the same time. They live one after another.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]


Chris said:
How do I reference a control on another page? Regards.
 
If you are posting to another page in 2.0 there is a way to reference the
previous page's controls. I have not done it but saw it demonstrated using
Page.PreviousPage. i found this and will keep it for reference:
http://msdn.microsoft.com/msdnmag/issues/05/10/ExtremeASPNET/. You can also
have multiple form on a single page, but i havn't seen anyone use that one
yet.
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes


Chris said:
So it's back to querystrings etc :)

Eliyahu Goldin said:
Normally you don't. Unless you have frames or some other special scenario,
the pages don't live in the same time. They live one after another.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]


Chris said:
How do I reference a control on another page? Regards.
 
Is this a scenario where Server.Transfer() would work?

Rich

If you are posting to another page in 2.0 there is a way to reference the
previous page's controls. I have not done it but saw it demonstrated using
Page.PreviousPage. i found this and will keep it for reference:
http://msdn.microsoft.com/msdnmag/issues/05/10/ExtremeASPNET/. You can also
have multiple form on a single page, but i havn't seen anyone use that one
yet.
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes


Chris said:
So it's back to querystrings etc :)

Eliyahu Goldin said:
Normally you don't. Unless you have frames or some other special scenario,
the pages don't live in the same time. They live one after another.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]


How do I reference a control on another page? Regards.
 
It will at least allow the referencing or passing of form fields and then get
the values using Request.Form("afieldposted"), but would this be perfered
when referencing a form on the "same site" as opposed to the "same server"? I
don't do this much, if ever, so i'd like to try both this and
Page.PreviousPage to see which is easier to work with.

--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes


Richard Carpenter said:
Is this a scenario where Server.Transfer() would work?

Rich

If you are posting to another page in 2.0 there is a way to reference the
previous page's controls. I have not done it but saw it demonstrated using
Page.PreviousPage. i found this and will keep it for reference:
http://msdn.microsoft.com/msdnmag/issues/05/10/ExtremeASPNET/. You can also
have multiple form on a single page, but i havn't seen anyone use that one
yet.
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes


Chris said:
So it's back to querystrings etc :)

Normally you don't. Unless you have frames or some other special scenario,
the pages don't live in the same time. They live one after another.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]


How do I reference a control on another page? Regards.
 

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

Back
Top