If you're creating a new web application, right click it in solution explorer and select properties. Select "Web" from the options on the left. You can specify the start url from there.
If you're creating a new "website" [An option in VS2008 and the default in VS2005], right click the site in solution explorer and select property pages. From the popup, select "Start Options". You can set the start url from there.
"If I can see further than anyone else, it is only because I am standing on the shoulders of giants."blog: www.heartysoft.com twitter: @ashic
Marked as answer by HeartattacK on May 23, 2009 11:32 AM
davood
Member
241 Points
207 Posts
pass parameter
May 23, 2009 08:44 AM|LINK
hi
i have a page named default.aspx. i want to add parameter in may correct URL when my page run (in page_load method)
Thanks
pass parameter
David
HeartattacK
All-Star
55288 Points
5920 Posts
Moderator
MVP
Re: pass parameter
May 23, 2009 10:06 AM|LINK
I don't know if I understand your problem correctly, but...in Page_Load, you can do this:
string parameter = Request["ParameterName"]; [C#]
Dim parameter as String = Request("ParameterName") [VB.Net]
Then, if the page is requested using Default.aspx?ParameterName=hello,
the string parameter will hold the value "hello".
blog: www.heartysoft.com
twitter: @ashic
davood
Member
241 Points
207 Posts
Re: pass parameter
May 23, 2009 10:15 AM|LINK
when you make in vs 2008 or 2005 new website, by default it makes a default.aspx and when you run it in
explorer the URL is http:\\localhost:...\default.aspx
but i want add some parameters when this page is loading and my url must be
http:\\localhost:...\default.aspx?=p1=sdgfdsfsd
David
HeartattacK
All-Star
55288 Points
5920 Posts
Moderator
MVP
Re: pass parameter
May 23, 2009 10:25 AM|LINK
If you're creating a new web application, right click it in solution explorer and select properties. Select "Web" from the options on the left. You can specify the start url from there.
If you're creating a new "website" [An option in VS2008 and the default in VS2005], right click the site in solution explorer and select property pages. From the popup, select "Start Options". You can set the start url from there.
blog: www.heartysoft.com
twitter: @ashic