471,321 Members | 2,152 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,321 software developers and data experts.

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

http://localhost/test/login.aspx?CustomerId=1001

Thanks,
Biren.

Jan 30 '06 #1
3 1769
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.querystring["customerid'} == null )
{
Response.Redirect( "login.aspx?CustomerID=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" <se*********@gmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
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.

Jan 30 '06 #2
> 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.


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

Chris
Jan 30 '06 #3
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.

Jan 31 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

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.