Friday, March 16, 2012

Passing a value to another page

Hello All,

How do i pass the value from a page that exists on some domain to
another page that exists in subdomain.

Regards
KausarYou could pass it in the querystring as part of a redirection to the
subdomain

Regards

John Timney (MVP)

"Kausar" <kausar.parveen@.suviinfo.comwrote in message
news:elSzgmquGHA.2224@.TK2MSFTNGP06.phx.gbl...

Quote:

Originally Posted by

Hello All,
>
How do i pass the value from a page that exists on some domain to
another page that exists in subdomain.
>
Regards
Kausar
>
>


Kausar wrote:

Quote:

Originally Posted by

Hello All,
>
How do i pass the value from a page that exists on some domain to
another page that exists in subdomain.
>
Regards
Kausar


I'm not sure that there is not more to your question than it first
seems. But assuming not then what's stopping you passing your value
from one page to the next as part of the request object (i.e. a form
element)?
Muhammad,

i dont think you can use 'SessionState' to share values between 2 domains.

Kausar,

you can use 1) Querystrings or 2) Hidden Variables to pass variables between
2 domains.

Regards,
Augustin

"Muhammad Mosa" wrote:

Quote:

Originally Posted by

You can use Query Strings
like this
>
page.aspx?ParamName1=ParamValue1
and for multiple values
page.aspx?ParamName1=ParamValue1&ParamName2=ParamValue2
>
I think also you can use Session state, but in your case I think you need to
use stateserver instead of In Process session state management.
>
--
Muhammad Mosa
Software Engineer & Solution Developer
MCT/MCSD.NET
MCTS: .Net 2.0 Web Applications
MCTS: .Net 2.0 Windows Applications
>
>
"Kausar" wrote:
>

Quote:

Originally Posted by

Hello All,

How do i pass the value from a page that exists on some domain to
another page that exists in subdomain.

Regards
Kausar


You can use Query Strings
like this

page.aspx?ParamName1=ParamValue1
and for multiple values
page.aspx?ParamName1=ParamValue1&ParamName2=ParamValue2

I think also you can use Session state, but in your case I think you need to
use stateserver instead of In Process session state management.

--
Muhammad Mosa
Software Engineer & Solution Developer
MCT/MCSD.NET
MCTS: .Net 2.0 Web Applications
MCTS: .Net 2.0 Windows Applications

"Kausar" wrote:

Quote:

Originally Posted by

Hello All,
>
How do i pass the value from a page that exists on some domain to
another page that exists in subdomain.
>
Regards
Kausar
>
>
>


Well I though it might be possible to use sessionstate
in case of subdomains, but I wasn't sure.
Anyway thanks for the information

Regards,
--
Muhammad Mosa
Software Engineer & Solution Developer
MCT/MCSD.NET
MCTS: .Net 2.0 Web Applications
MCTS: .Net 2.0 Windows Applications

"Augustin Prasanna" wrote:

Quote:

Originally Posted by

Muhammad,
>
i dont think you can use 'SessionState' to share values between 2 domains.
>
Kausar,
>
you can use 1) Querystrings or 2) Hidden Variables to pass variables between
2 domains.
>
Regards,
Augustin
>
"Muhammad Mosa" wrote:
>

Quote:

Originally Posted by

You can use Query Strings
like this

page.aspx?ParamName1=ParamValue1
and for multiple values
page.aspx?ParamName1=ParamValue1&ParamName2=ParamValue2

I think also you can use Session state, but in your case I think you need to
use stateserver instead of In Process session state management.

--
Muhammad Mosa
Software Engineer & Solution Developer
MCT/MCSD.NET
MCTS: .Net 2.0 Web Applications
MCTS: .Net 2.0 Windows Applications

"Kausar" wrote:

Quote:

Originally Posted by

Hello All,
>
How do i pass the value from a page that exists on some domain to
another page that exists in subdomain.
>
Regards
Kausar
>
>
>


Sorry guys, i believe that i had got it wrong. We cannot post Form
variables/Hidden Variables from one app to another app. so the only way is to
use Querystring.

please correct me if am wrong.

Regards,
Augustin

"Richard Brown" wrote:

Quote:

Originally Posted by

>
Kausar wrote:

Quote:

Originally Posted by

Hello All,

How do i pass the value from a page that exists on some domain to
another page that exists in subdomain.

Regards
Kausar


>
I'm not sure that there is not more to your question than it first
seems. But assuming not then what's stopping you passing your value
from one page to the next as part of the request object (i.e. a form
element)?
>
>

0 comments:

Post a Comment