Querystring in startup page......

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Biren Prajapati

    #1

    Querystring in startup page......

    Hi All,

    Can anyone give me the way through which we can give querystrings in
    the startup page in visual studio 2003?

    E.g.
    Suppose if my startup page is login.aspx, and everytime if I want to
    start with



    Thanks,
    Biren.

  • Ignacio Machin \( .NET/ C# MVP \)

    #2
    Re: Querystring in startup page......

    Hi,

    No idea if you can set a default query string in the startup page (I don't
    thikn so)

    But doing what you want is VERY simple, set the startup page to login.aspx
    in the page_load do this:

    if ( Page.querystrin g["customerid '} == null )
    {
    Response.Redire ct( "login.aspx?Cus tomerID=100" , true);
    return;

    }


    It will load the same page with your default parameter



    --
    Ignacio Machin,
    ignacio.machin AT dot.state.fl.us
    Florida Department Of Transportation



    "Biren Prajapati" <sendtobiren@gm ail.com> wrote in message
    news:1138624801 .735891.27580@g 49g2000cwa.goog legroups.com...[color=blue]
    > Hi All,
    >
    > Can anyone give me the way through which we can give querystrings in
    > the startup page in visual studio 2003?
    >
    > E.g.
    > Suppose if my startup page is login.aspx, and everytime if I want to
    > start with
    >
    > http://localhost/test/login.aspx?CustomerId=1001
    >
    > Thanks,
    > Biren.
    >[/color]


    Comment

    • chris martin

      #3
      Re: Querystring in startup page......

      > Hi All,[color=blue]
      >
      > Can anyone give me the way through which we can give querystrings in
      > the startup page in visual studio 2003?
      >
      > E.g.
      > Suppose if my startup page is login.aspx, and everytime if I want to
      > start with
      > http://localhost/test/login.aspx?CustomerId=1001
      >
      > Thanks,
      > Biren.[/color]

      Right click on your project -> Properties -> Configuration Properties ->
      Debugging -> Start Page -> add your querystring.

      Chris


      Comment

      • Biren Prajapati

        #4
        Re: Querystring in startup page......

        It didn't work as you specified. I had to specify "Command Line
        Parameters" in that page.

        But thanks anyways for atleast giving me the page where I could specify
        these parameters.

        Comment

        Working...