•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 427,382 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,034 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 549 | Replies: 5
![]() |
•
•
Join Date: Jun 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Hi
I wish to Rewrite Url
www.mysite.com/demo.aspx/1
instead of www.mysite.com/demo.aspx?id=1
i tried a lot with the below
http://www.qwerksoft.com/products/ii...e/download.asp
yet i got clear way
can anybody guide me or give me a new idea to do this stuff
( I wish to Rewrite Url
www.mysite.com/demo.aspx/1
instead of www.mysite.com/demo.aspx?id=1 )
by
Ram
I wish to Rewrite Url
www.mysite.com/demo.aspx/1
instead of www.mysite.com/demo.aspx?id=1
i tried a lot with the below
http://www.qwerksoft.com/products/ii...e/download.asp
yet i got clear way
can anybody guide me or give me a new idea to do this stuff
( I wish to Rewrite Url
www.mysite.com/demo.aspx/1
instead of www.mysite.com/demo.aspx?id=1 )
by
Ram
i dont understand why you are intrested to do so, yet
www.mysite.com/demo.aspx?id=1
is quite safe method
can you explain your problem in detail may be i can help you .
www.mysite.com/demo.aspx?id=1
is quite safe method
can you explain your problem in detail may be i can help you .
Ok i understand you can go through from this link
http://msdn.microsoft.com/en-us/library/ms972974.aspx
this contains all the neccessary information and security reason you are talking about
hope this will help you
Regards,
Farid ud din Masood
http://msdn.microsoft.com/en-us/library/ms972974.aspx
this contains all the neccessary information and security reason you are talking about
hope this will help you
Regards,
Farid ud din Masood
•
•
Join Date: Feb 2008
Posts: 51
Reputation:
Rep Power: 1
Solved Threads: 3
I'd suggest implementing a 3rd party component. We use http://urlrewriter.net/ quite a bit and I've been very impressed with it. If you decide to go this route and end up having any issues with the setup, let us know.
•
•
Join Date: Sep 2007
Posts: 1,057
Reputation:
Rep Power: 4
Solved Threads: 61
It's not difficult in asp.net to use the ASP.NET built in methods to do url rewriting.
Also, if you wish to stray away from this method, just add a check at the beginning of each page.
This is not a very effective way, but if it is small and minimal people are using it, it can be an easy solution.
Also, if you wish to stray away from this method, just add a check at the beginning of each page.
vb.net Syntax (Toggle Plain Text)
Dim idSplit = request.serverVariables("SCRIPT_NAME").split("/") Dim id = idSplit(idSplit.length - 1) Dim page = idSplit(idSplit.length - 2) If page = "demo.aspx" And Not id Is Nothing Then 'there's a querystring. End If
I answer pm's.
I answer questions.
I answer quickly.
I answer.
I answer questions.
I answer quickly.
I answer.
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Dynamic ASP Rewrite URL (ASP)
- Smart URL's (PHP)
- URL Rewrite, passing variables, or some other way??? (Linux Servers and Apache)
- Tableless CSS XHTML rewrite of osCommerce (Post your Resume)
- Looking to exchange links with PR5 sites or above (Relevant Link Exchanges)
- mod rewrite domain (Linux Servers and Apache)
- rewrite boot.ini file (Windows NT / 2000 / XP / 2003)
Other Threads in the ASP.NET Forum
- Previous Thread: Client server Messaging Application
- Next Thread: problem with uploading several images with the same name.



Linear Mode