Differences between running in VS and calling an ASP.Net page froma browser

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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)...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139