473,320 Members | 1,900 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,320 software developers and data experts.

How can I share variable between web site ?

All,

How can I share variable between web site ?

I mean that I have two web sites but I need to use the same variable, how
can I do ? I try to use session or application but it doesn't work.

PS: I use VB.NET to write web application in ASP.NET

Thanks for advance.
Nov 18 '05 #1
11 1549
You can't share a variable between websites. You can pass a static value in
a URL, however.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.

"Sara T." <sa****@infoquest.co.th> wrote in message
news:Ow**************@TK2MSFTNGP10.phx.gbl...
All,

How can I share variable between web site ?

I mean that I have two web sites but I need to use the same variable, how
can I do ? I try to use session or application but it doesn't work.

PS: I use VB.NET to write web application in ASP.NET

Thanks for advance.

Nov 18 '05 #2
I afraid that the information is so worthy and I need not to show via URL
because that may be taken to use at another windows by someone.

Any ideas are appreciated.
"Eric Lawrence [MSFT]" <e_********@hotmail.com> wrote in message
news:#6**************@TK2MSFTNGP10.phx.gbl...
You can't share a variable between websites. You can pass a static value in a URL, however.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
"Sara T." <sa****@infoquest.co.th> wrote in message
news:Ow**************@TK2MSFTNGP10.phx.gbl...
All,

How can I share variable between web site ?

I mean that I have two web sites but I need to use the same variable, how can I do ? I try to use session or application but it doesn't work.

PS: I use VB.NET to write web application in ASP.NET

Thanks for advance.


Nov 18 '05 #3
Post a form which contains a hidden variable from app1 to app2. Same as URL
solution, except you don't see it in the browser address bar.

Brad Williams
"Sara T." <sa****@infoquest.co.th> wrote in message
news:e2**************@TK2MSFTNGP09.phx.gbl...
I afraid that the information is so worthy and I need not to show via URL
because that may be taken to use at another windows by someone.

Any ideas are appreciated.
"Eric Lawrence [MSFT]" <e_********@hotmail.com> wrote in message
news:#6**************@TK2MSFTNGP10.phx.gbl...
You can't share a variable between websites. You can pass a static value
in
a URL, however.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no

rights.

"Sara T." <sa****@infoquest.co.th> wrote in message
news:Ow**************@TK2MSFTNGP10.phx.gbl...
All,

How can I share variable between web site ?

I mean that I have two web sites but I need to use the same variable,

how can I do ? I try to use session or application but it doesn't work.

PS: I use VB.NET to write web application in ASP.NET

Thanks for advance.



Nov 18 '05 #4
WJ
"Sara T." <sa****@infoquest.co.th> wrote in message
news:e2**************@TK2MSFTNGP09.phx.gbl...
I afraid that the information is so worthy and I need not to show via URL
because that may be taken to use at another windows by someone.

Any ideas are appreciated.


The best is to use database to store confidential data for cross-site
access. Otherwise, use POST instead of GET. Post accepts larger payload and
hides your data (unencrypt). Or use SSL to encrypt data (costs you but it is
safe).

John
Nov 18 '05 #5
Post a hidden variable may be the good point at this moment.

Could you have some a little part of code to handle this issues ?

"Brad Williams" <sp**@wcsoft.com> wrote in message
news:uO**************@TK2MSFTNGP10.phx.gbl...
Post a form which contains a hidden variable from app1 to app2. Same as URL solution, except you don't see it in the browser address bar.

Brad Williams
"Sara T." <sa****@infoquest.co.th> wrote in message
news:e2**************@TK2MSFTNGP09.phx.gbl...
I afraid that the information is so worthy and I need not to show via URL because that may be taken to use at another windows by someone.

Any ideas are appreciated.
"Eric Lawrence [MSFT]" <e_********@hotmail.com> wrote in message
news:#6**************@TK2MSFTNGP10.phx.gbl...
You can't share a variable between websites. You can pass a static value
in
a URL, however.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no

rights.

"Sara T." <sa****@infoquest.co.th> wrote in message
news:Ow**************@TK2MSFTNGP10.phx.gbl...
> All,
>
> How can I share variable between web site ?
>
> I mean that I have two web sites but I need to use the same

variable, how
> can I do ? I try to use session or application but it doesn't work.
>
> PS: I use VB.NET to write web application in ASP.NET
>
> Thanks for advance.
>
>



Nov 18 '05 #6
See this:
http://msdn.microsoft.com/library/de...classtopic.asp

Brad Williams

"Sara T." <sa****@infoquest.co.th> wrote in message
news:uB**************@tk2msftngp13.phx.gbl...
Post a hidden variable may be the good point at this moment.

Could you have some a little part of code to handle this issues ?

Nov 18 '05 #7
Server.Transfer(newURL)
"Sara T." <sa****@infoquest.co.th> wrote in message
news:Ow**************@TK2MSFTNGP10.phx.gbl...
All,

How can I share variable between web site ?

I mean that I have two web sites but I need to use the same variable, how
can I do ? I try to use session or application but it doesn't work.

PS: I use VB.NET to write web application in ASP.NET

Thanks for advance.

Nov 18 '05 #8
Thanks a lot.

But a difficult thing that I found is I have to add hidden variable in every
pages. Not like a session or application variable. But if it is a true
concept of developing web page, may be to follow.

"Brad Williams" <sp**@wcsoft.com> wrote in message
news:eC**************@TK2MSFTNGP11.phx.gbl...
See this:
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwebuihtmlcontrolshtmlinputhiddenclassto pic.asp
Brad Williams

"Sara T." <sa****@infoquest.co.th> wrote in message
news:uB**************@tk2msftngp13.phx.gbl...
Post a hidden variable may be the good point at this moment.

Could you have some a little part of code to handle this issues ?


Nov 18 '05 #9
I don't believe Server.Transfer will work as you expect between sites.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.

"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:Om**************@TK2MSFTNGP09.phx.gbl...
Server.Transfer(newURL)
"Sara T." <sa****@infoquest.co.th> wrote in message
news:Ow**************@TK2MSFTNGP10.phx.gbl...
All,

How can I share variable between web site ?

I mean that I have two web sites but I need to use the same variable, how can I do ? I try to use session or application but it doesn't work.

PS: I use VB.NET to write web application in ASP.NET

Thanks for advance.


Nov 18 '05 #10
What risks to the information do you foresee? If you pass it in the URL or
a POST body, a user or upstream network device can view the data.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.

"Sara T." <sa****@infoquest.co.th> wrote in message
news:e2**************@TK2MSFTNGP09.phx.gbl...
I afraid that the information is so worthy and I need not to show via URL
because that may be taken to use at another windows by someone.

Any ideas are appreciated.
"Eric Lawrence [MSFT]" <e_********@hotmail.com> wrote in message
news:#6**************@TK2MSFTNGP10.phx.gbl...
You can't share a variable between websites. You can pass a static value
in
a URL, however.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no

rights.

"Sara T." <sa****@infoquest.co.th> wrote in message
news:Ow**************@TK2MSFTNGP10.phx.gbl...
All,

How can I share variable between web site ?

I mean that I have two web sites but I need to use the same variable,

how can I do ? I try to use session or application but it doesn't work.

PS: I use VB.NET to write web application in ASP.NET

Thanks for advance.



Nov 18 '05 #11
In article <#6**************@TK2MSFTNGP10.phx.gbl>, "Eric Lawrence
[MSFT]" <e_********@hotmail.com> writes
You can't share a variable between websites. You can pass a static value in
a URL, however.

Can you share one between different web apps on the same server?
Presumably a session variable would work in these circumstances?

Can you pas an object between web aps on the same server? Perhaps
you've created an object that defines say a product (or perhaps a user)
and has properties, How can that be defined in one web app but then
used in another (on the same server)?

--
Paul
Nov 18 '05 #12

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

Similar topics

3
by: Matthew Wilson | last post by:
I have Red Hat 9 installed, which uses python2.2 for lots of system tasks. I also installed 2.3 using the rpms available from python.org. I want to write some CGI scripts that use pgdb. I want...
0
by: S Johnson | last post by:
>Trying to start first time using command: > C:\mysql\bin\mysqld --standalone > > Yields this error message: Can't find > messagefile'C:mysqin\share\english\errmsg.sys' aborting > > Now in...
3
by: John Sheppard | last post by:
Hello, I was wondering if anyone knew how to send session variables between two different servers... My web host gives me two servers, one normal server and one that has SSL on it. When my web...
8
by: JR | last post by:
I have a Web server running on Windows XP. On this Web server, I have a Web site configured with its home directory on a network share. In the Web site, there's a virtual folder pointing to a local...
8
by: Tony Fonager | last post by:
I am currently developing a statistics system in ASP.NET, and need to share information about the customers websites, in this application. (I have simplified my code, to make my project easier to...
3
by: far asl via DotNetMonster.com | last post by:
I have developed my site admin pages some in asp while others are in asp.net. I have problem that i cannot share session variables of both alternatively. Actually i save my userid in session...
15
by: Neo | last post by:
Hello All, I found that ASP.net website only accepts code withing site directory. This creates big hurdle in shairng code. How to share code between two websites, like the way share between two...
1
by: guddu | last post by:
Hi, I have to share a variable across two libraries. These libraries are build separately and share a common header file. I had tried this earlier using extern variable. That didn't help. Any...
6
by: Immortal Nephi | last post by:
First class is the base class. It has two data: m_Base1 and m_Base2. Second class and third class are derived classes and they are derived from first class. m_Base1 and m_Base2 are inherited into...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.