querystring doesn't work 1st time on page, only 2nd time

Discussion in 'ASP .Net' started by Jason Shohet, Jun 17, 2004.

  1. Jason Shohet

    Jason Shohet Guest

    I have this url that I put into IE:
    http://mysite/default.aspx?machinename=%COMPUTERNAME%

    Computername is an app variable, and returns me the computer the browser is
    sitting on. But thats not the problem. The problem is, when I type that in
    to the browser & hit enter, it goes to 'mysite'. The page comes up. But
    the "?machinename..." thing is gone. It just shoes up to default.aspx.
    And in my codebehind, I also have verified that the tagged on information is
    gone.
    Now whats interesting is that if I put that same exact URL in again with the
    querystring, while default.aspx is up, it works! And the codebehind sees
    the querystring.

    Anyone know why the first time, the querystring is getting deleted? TY !
    Jason Shohet
     
    Jason Shohet, Jun 17, 2004
    #1
    1. Advertising

  2. Jason Shohet

    Jason Shohet Guest

    got it working. TY... I had code in session_start that was messing things
    up.
    I wish i could do a redirect in session_end, when the session ends, instead
    of session_start....
     
    Jason Shohet, Jun 17, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. blenderdude
    Replies:
    0
    Views:
    1,150
    blenderdude
    Aug 3, 2003
  2. =?Utf-8?B?RGF2aWRT?=

    2nd post - 1st 8/2/05 (no reply). Any help here?

    =?Utf-8?B?RGF2aWRT?=, Aug 4, 2005, in forum: ASP .Net
    Replies:
    14
    Views:
    601
    Grant Merwitz
    Aug 5, 2005
  3. Patrick_

    Code Complete: 1st or 2nd Edition?

    Patrick_, Dec 17, 2005, in forum: C Programming
    Replies:
    0
    Views:
    444
    Patrick_
    Dec 17, 2005
  4. Basman
    Replies:
    0
    Views:
    437
    Basman
    Oct 29, 2007
  5. praveen praveen
    Replies:
    3
    Views:
    114
    Andrea Dallera
    Mar 18, 2010
Loading...

Share This Page