IT Community - Software Programming, Web Development and Technical Support

How to get URL without querystring?in asp.net

This is a discussion on How to get URL without querystring?in asp.net within the ASP and ASP.NET Programming forums, part of the Web Development category; How to get URL without querystring?in asp.net...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-23-2007, 07:18 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Question How to get URL without querystring?in asp.net

How to get URL without querystring?in asp.net
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-27-2007, 04:58 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Smile Re: How to get URL without querystring?in asp.net

Hi..


Try this code,It will work

Consider the URL

http://localhost:8080/Test/Default.aspx?b=10&c=20

string a = Request.Url.GetLeftPart(UriPartial.Path);

this will return only "http://localhost:8080/Test/Default.aspx"
to the variable a.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get values from querystring? S.Vinothkumar Ruby 2 11-26-2007 06:40 AM


All times are GMT -7. The time now is 08:06 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0