| | |
How to rewrite url
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2008
Posts: 2
Reputation:
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: 62
Reputation:
Solved Threads: 4
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,080
Reputation:
Solved Threads: 68
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.
![]() |
Similar Threads
- Looking to exchange links with PR5 sites or above (Relevant Link Exchanges)
- 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)
- mod rewrite domain (Linux Servers and Apache)
- rewrite boot.ini file (Windows NT / 2000 / XP)
Other Threads in the ASP.NET Forum
- Previous Thread: Client server Messaging Application
- Next Thread: problem with uploading several images with the same name.
Views: 1554 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 ajax alltypeofvideos anathor appliances application asp asp.net beginner box browser button c# cac checkbox commonfunctions complex connection control dataaccesslayer database datagridview datalist deployment development dgv dialog dropdownlist dynamic dynamically edit editing embeddingactivexcontrol expose feedback fileuploader fill findcontrol flash form formatdecimal formview gridview gudi iis image javascript languages list listbox login microsoft mobile mouse mssql news novell numerical opera panelmasterpagebuttoncontrols parent problem project radio redirect registration relationaldatabases reportemail response.redirect richtextbox rows schoolproject search security select sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl theft tracking treeview validatedate validation vb.net videos vista visualstudio web webapplications webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers






