473,508 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting a QueryString for a startup page

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 was in the
Project Properties dialog under the Debugging tab. There's a dropdown
box where you can set the start up page. But VS ignores the
querystring I add to the page name in this combo box. I know this
because the Request.QueryString property is Nothing when I read it in
the Page_Load event. Any idea where (or if) this is possible?

Thanks in advance,

Bill

Nov 19 '05 #1
3 5602
Hi,

Project Properties->Debugging tab->Start page textbox (its not a dropdown
box) works ok for me. If you set this textbox to something like
"default.aspx?blah=2" it should fire up your browser with that URL and
querystring parameters.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Read my weblog:
Followers of the IHttpHandler
http://clariusconsulting.net/vga
"Nobody" <bk****@optonline.net> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
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 was in the
Project Properties dialog under the Debugging tab. There's a dropdown
box where you can set the start up page. But VS ignores the
querystring I add to the page name in this combo box. I know this
because the Request.QueryString property is Nothing when I read it in
the Page_Load event. Any idea where (or if) this is possible?

Thanks in advance,

Bill

Nov 19 '05 #2
You can also the command-line parameters for in the project properties so
something like "?a=10&b=20" (without the quotes. The command-line
parameters are added to the URL in web projects.
"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPAM.com> wrote in message
news:un**************@TK2MSFTNGP15.phx.gbl...
Hi,

Project Properties->Debugging tab->Start page textbox (its not a dropdown
box) works ok for me. If you set this textbox to something like
"default.aspx?blah=2" it should fire up your browser with that URL and
querystring parameters.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Read my weblog:
Followers of the IHttpHandler
http://clariusconsulting.net/vga
"Nobody" <bk****@optonline.net> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
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 was in the
Project Properties dialog under the Debugging tab. There's a dropdown
box where you can set the start up page. But VS ignores the
querystring I add to the page name in this combo box. I know this
because the Request.QueryString property is Nothing when I read it in
the Page_Load event. Any idea where (or if) this is possible?

Thanks in advance,

Bill


Nov 19 '05 #3
How simple. Thanks!

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
18955
by: Johan Louwers | last post by:
I have a qustion. I have to set a JAVA_HOME variable on a Solaris9 system... what kind of a variable? A system-defined.../....a user defined.../.....???? and how do I set this so java can...
10
1764
by: johndoe | last post by:
While creating a shopping cart application I noticed a strange bug which resulted in the Constructor and everything being called twice. I was using Inherited classes ClassShowProducts inherited...
3
3116
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...
8
2251
by: David Lozzi | last post by:
Howdy, I have a user control that is a report to display data. On the page the control is inserted in, I have filter options to filter the report. When I try to do something like this, nothing...
3
1848
by: Biren Prajapati | last post by:
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...
1
6441
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
10
2495
by: Brad Baker | last post by:
I have an asp.net/csharp application that requires a particular variable to work properly. This variable is usually passed via a query string in the URL when the application is first run but under...
0
4996
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 :...
3
1600
by: Nathan Sokalski | last post by:
I would like to be able to set the querystring for the URL used for a postback (the action attribute of the form). The Form property of the page does not give access to this property, and I do not...
0
7118
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...
1
7038
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
7493
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...
0
5625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.