473,395 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 1843
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Raterus | last post by:
Howdy, Simple question, but I can't figure out how to do it. I have a a page which is called initially with a querystring. After I get the querystring values, I don't need the querystring to...
3
by: Dan Sikorsky | last post by:
How can I get the Querystring passed to the Referring Page from its referrer? I don't want the querystring coming to my current page. I want the querystring that came to the referring page, so...
3
by: Nobody | last post by:
Hi -- I'm developing an ASP.NET application in VS.NET and I want the startup page to read in some parameters from a querystring. But I can't figure out where to set the querystring. I thought it...
0
by: bharathreddy | last post by:
Here I will given an example on how to access the session, application and querystring variables in an .cs class file. Using System.Web.HttpContext class. 1) For accesing session variables :...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.