Ask a Question related to ASP.NET General, Design and Development.
-
Peter Bradley #1
Differences between running in VS and calling an ASP.Net page froma browser
I have developed a little ASP.Net application that works fine when
started in the VS IDE. However when I call it from our "home" page it
doesn't work.
The page_load event handlers of two pages set a cookie for their
respective pages. Buttons on the pages check for the existence of their
cookie (in client-side onclick scripts) before proceeding. It has be
client-side for reasons I'll not bore you with unless you're really
interested.
It all works beautifully in the IDE, but the cookies are always empty
when retrieved from script in a page called in the "live" environment
(i.e. called from another page via an HTML link). They have their
expected values (of course) when retrieved in the same script where the
application has been started from the IDE - even when the page is not
the start page.
Is it something to do with being called from HTML links? Does the
page_load event not happen when pages are loaded in this way rather than
being "open"ed from code?
Thanks in advance
Peter
Peter Bradley Guest
-
Calling/running a javascript
This is driving me off the edge. I've downloaded a javascript from the web - a table sort script (http://4umi.com/web/javascript/tablescroll.htm)... -
cross browser differences
To all that contribute to these user forums: thank you. You are a tremendous help. Even with all that info, I just can't get my head around... -
calling a web service on a standalone with no localhost running...
is it possible to include a web service dll with your application and call its' methods without having an internet or localhost connection? I... -
Can I cancel a running server page from the browser?
I have a server page that has served an HTML page with a "Cancel" button on it, BUT this server page has not completed and is running a 15-30 second... -
Calling a html page from an asp page then returning to the next statement on the original asp page
Hi! I have an ASP page that calls excel to create a report. This works fine. Now I need to call a html calendar page to filter what rows are... -
S. Justin Gengo #2
Re: Differences between running in VS and calling an ASP.Net page from a browser
Peter,
Let us see some of the code.
--
S. Justin Gengo
Web Developer / Programmer
Free Code Library At:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Peter Bradley" <pbradley@uwic.ac.uk> wrote in message
news:bf3n0m$v4$1@news.swman.net.uk...> I have developed a little ASP.Net application that works fine when
> started in the VS IDE. However when I call it from our "home" page it
> doesn't work.
>
> The page_load event handlers of two pages set a cookie for their
> respective pages. Buttons on the pages check for the existence of their
> cookie (in client-side onclick scripts) before proceeding. It has be
> client-side for reasons I'll not bore you with unless you're really
> interested.
>
> It all works beautifully in the IDE, but the cookies are always empty
> when retrieved from script in a page called in the "live" environment
> (i.e. called from another page via an HTML link). They have their
> expected values (of course) when retrieved in the same script where the
> application has been started from the IDE - even when the page is not
> the start page.
>
> Is it something to do with being called from HTML links? Does the
> page_load event not happen when pages are loaded in this way rather than
> being "open"ed from code?
>
> Thanks in advance
>
> Peter
>
S. Justin Gengo Guest
-
Kevin Spencer #3
Re: Differences between running in VS and calling an ASP.Net page from a browser
Is your ASP.Net app in the same domain as your "home" page? Cookies are
domain-specific.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
[url]http://www.takempis.com[/url]
Big things are made up of
lots of little things.
"Peter Bradley" <pbradley@uwic.ac.uk> wrote in message
news:bf3n0m$v4$1@news.swman.net.uk...> I have developed a little ASP.Net application that works fine when
> started in the VS IDE. However when I call it from our "home" page it
> doesn't work.
>
> The page_load event handlers of two pages set a cookie for their
> respective pages. Buttons on the pages check for the existence of their
> cookie (in client-side onclick scripts) before proceeding. It has be
> client-side for reasons I'll not bore you with unless you're really
> interested.
>
> It all works beautifully in the IDE, but the cookies are always empty
> when retrieved from script in a page called in the "live" environment
> (i.e. called from another page via an HTML link). They have their
> expected values (of course) when retrieved in the same script where the
> application has been started from the IDE - even when the page is not
> the start page.
>
> Is it something to do with being called from HTML links? Does the
> page_load event not happen when pages are loaded in this way rather than
> being "open"ed from code?
>
> Thanks in advance
>
> Peter
>
Kevin Spencer Guest



Reply With Quote

