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

Question about executing an ASPX locally

Let's say I have a session variable in my asp.net website.
Now I have an aspx file on my C drive.

Now I have a link pointing to it so I can click on it and execute this ASPX
file to my browser. Only me has this file on my C drive and can execute it.
Other users will obviously get a page not found.

In the load section on the aspx file, I modify a SESSION variable of my
website.

Will this work?

The intent here is to get the website informed that this session is executed
from my computer because I can execute that aspx file from my C drive.

Please answer me...
Feb 20 '07 #1
4 1152
No, it will not because the pages are on different servers. Session
variables are stored on the server, so if you request a page on another
server (like you are when you request the file on your C drive) that page
will not have access to previous session variables. Hopefully this helps.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Jman" <jm*******@hotmail.comwrote in message
news:Fl*******************@wagner.videotron.net...
Let's say I have a session variable in my asp.net website.
Now I have an aspx file on my C drive.

Now I have a link pointing to it so I can click on it and execute this
ASPX file to my browser. Only me has this file on my C drive and can
execute it. Other users will obviously get a page not found.

In the load section on the aspx file, I modify a SESSION variable of my
website.

Will this work?

The intent here is to get the website informed that this session is
executed from my computer because I can execute that aspx file from my C
drive.

Please answer me...

Feb 20 '07 #2
Jman,
What is the real goal here? You say "The intent here is to get the website
informed that this session is executed from my computer because I can execute
that aspx file from my C drive."
What "session" are we talking about? What exactly do you need to "get the
website informed" about?
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Jman" wrote:
Let's say I have a session variable in my asp.net website.
Now I have an aspx file on my C drive.

Now I have a link pointing to it so I can click on it and execute this ASPX
file to my browser. Only me has this file on my C drive and can execute it.
Other users will obviously get a page not found.

In the load section on the aspx file, I modify a SESSION variable of my
website.

Will this work?

The intent here is to get the website informed that this session is executed
from my computer because I can execute that aspx file from my C drive.

Please answer me...
Feb 20 '07 #3
You'll need also a local web server to get this page executed. As the page
is not part of the other site, it won't have access to the other site
session variable.

IMO your best bet is to explain your overall goal so that someone can
suggest a way to achieve your goal likely using a totally different way...

"Jman" <jm*******@hotmail.coma écrit dans le message de news:
Fl*******************@wagner.videotron.net...
Let's say I have a session variable in my asp.net website.
Now I have an aspx file on my C drive.

Now I have a link pointing to it so I can click on it and execute this
ASPX file to my browser. Only me has this file on my C drive and can
execute it. Other users will obviously get a page not found.

In the load section on the aspx file, I modify a SESSION variable of my
website.

Will this work?

The intent here is to get the website informed that this session is
executed from my computer because I can execute that aspx file from my C
drive.

Please answer me...

Feb 20 '07 #4
I need a way to detect if a user is using a local machine that way I can
have a different menu on my main web page.

So i want to create an intranet inside our actual intranet for a subset of
users.
This site is not on the same domain and this is webhosting so i cannot query
to IIS or Active directory to get the windows group.

I thought about installing a cookie on the same machine but this would be
overhead for the administrator.

"Patrice" <http://www.chez.com/scribe/wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
You'll need also a local web server to get this page executed. As the page
is not part of the other site, it won't have access to the other site
session variable.

IMO your best bet is to explain your overall goal so that someone can
suggest a way to achieve your goal likely using a totally different way...

"Jman" <jm*******@hotmail.coma écrit dans le message de news:
Fl*******************@wagner.videotron.net...
>Let's say I have a session variable in my asp.net website.
Now I have an aspx file on my C drive.

Now I have a link pointing to it so I can click on it and execute this
ASPX file to my browser. Only me has this file on my C drive and can
execute it. Other users will obviously get a page not found.

In the load section on the aspx file, I modify a SESSION variable of my
website.

Will this work?

The intent here is to get the website informed that this session is
executed from my computer because I can execute that aspx file from my C
drive.

Please answer me...


Feb 20 '07 #5

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

Similar topics

7
by: Brian Burgess | last post by:
Hi all, Anyone know of any special issues with Server.Execute? Specifically for me it simply is not executing ... the server does not transfer to the page specified. The calling ASP just...
4
by: Yoni Gibbs | last post by:
Hi, Once an assembly has been downloaded into the GAC, is it possible to execute it locally somehow? e.g. if I download an exe into the GAC, can the client PC simply run this assembly directly,...
5
by: Gopal Krish | last post by:
Hello, Can anyone tell me how to strong name a web page? Thanks Gopal
5
by: MN | last post by:
Hello all - I'm hoping someone will be able to share their knowledge with me about this issue I'm having because I have run out of answers. Here's the scenario.... I have a .aspx page that...
0
by: diesel | last post by:
I am doing a very simple Server.Transfer("myPage.aspx", TRUE) Locally on my machine and on the development server there are no issues Once I move it to the production server I get the message...
7
by: tshad | last post by:
I thought I understood how the SaveViewState is working and was trying to use this (as per some code I found) to detect refreshes. It seemed to be working but I found that the SaveViewState was...
29
by: =?Utf-8?B?SGVybWF3aWg=?= | last post by:
Hello, Please anybody help me. I have only a little experience with web development. I created simple project using ASP NET 2.0 (VS 2005) It works fine on local computer. When I tried to run...
4
by: =?Utf-8?B?ZG91Zw==?= | last post by:
I built a ws locally takes in a request object and returns a response object. The ws reads in a good sized xml file and the request oject has elements used to create an xml subset and returns it as...
8
by: Frankie | last post by:
Just getting my feet wet with threading... Is it the case that... once a method starts executing in a given thread, that method will finish executing on that same thread? Or is it possible for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.