473,662 Members | 2,752 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.QuerySt ring 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 5614
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?b lah=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****@optonli ne.net> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.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.QuerySt ring 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*@NOobiesSPA M.com> wrote in message
news:un******** ******@TK2MSFTN GP15.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?b lah=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****@optonli ne.net> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.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.QuerySt ring 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
18966
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 work with it? I need this to be used by Tomcat at a webserver..... Thanks already,
10
1774
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 TemplatePage which inherited System.Web.UI.Page which I thought was the problem so I spent all day recoding everything so that ClassShowProducts was inherited from System.Web.UI.Page. Then I found out that it still happend. I then quickly narrowed it...
3
3124
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 that I can check for the existance of a parameter value in that previous querystring.
8
2258
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 happens. dim filt as string ... build filter string... UserControl.ReportFilter = filt
3
1856
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 start with http://localhost/test/login.aspx?CustomerId=1001
1
6476
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" setting to be "E_ALL", notices are still not getting reported. The perms on my file are 664, with owner root and group root. The php.ini file is located at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem to be having an effect? ...
10
2507
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 certain circumstances the query string may not contain the variable. So I need some way of establishing a default value if one isn't set. Is there some way I can set a query string on page_load OR is there some way I can use a global variable...
0
5008
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 : System.Web.HttpContext.Current.Session 2) For accesing Application variables : System.Web.HttpContext.Current.Application 3) For accesing QueryString variables : System.Web.HttpContext.Current.Request.QueryString Here is a simple example where...
3
1604
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 want to set the entire value by using the Attributes property. Is there any simple property that can be used to add to the outgoing querystring? Thanks. Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
0
8768
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8547
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7368
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
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 we have to send another system
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.