Click here to Skip to main content
15,925,400 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Please Help Pin
J4amieC20-Apr-06 1:55
J4amieC20-Apr-06 1:55 
Questionrediobutton Pin
ptvce20-Apr-06 0:58
ptvce20-Apr-06 0:58 
AnswerRe: rediobutton Pin
chakkara200320-Apr-06 1:08
chakkara200320-Apr-06 1:08 
AnswerRe: rediobutton Pin
benqazou20-Apr-06 1:21
benqazou20-Apr-06 1:21 
GeneralRe: rediobutton Pin
ptvce20-Apr-06 3:22
ptvce20-Apr-06 3:22 
Questionhi all Pin
chakkara200320-Apr-06 0:29
chakkara200320-Apr-06 0:29 
AnswerRe: hi all Pin
Mike Ellison20-Apr-06 2:45
Mike Ellison20-Apr-06 2:45 
QuestionAdvice on "Friendly Urls" Pin
Alsvha20-Apr-06 0:24
Alsvha20-Apr-06 0:24 
Hiya all.

I'm about to do a new website where I need to use "friendly urls" (which I think the term is), but as I've read more about the topic, I've gotten to say the least, a bit confused about which avenue to explore most.
What I'd like to end up with is that when the user enters for instance: www.domain.com/products/productnumber.aspx that I'll then subtract the productnumber and handle it internally as if the user had typed: www.domain.com/default.aspx?pageid=xxx&productid=yyy.
(Naturally can be other types of urls, but the situation is the same)


As I understand it there seems to currently be two ways of creating these friendly urls.

1) Use HttpContext.RewriteUrl("new url") in the application.beginrequest in global.asax
2) Use/trap 404 errors on a custom page

I am unsure which of these two methods are the best and what the pros and cons on each of them are.
I haven't found many ressources which mentions both and when I do it is often in comments and not an comparison of these.

Any advice on which of the two methods to use, or possible ressources pointing to a comparison, or perhaps even a third way?

With regards, and thanks in advance.


---------------------------
127.0.0.1 - Sweet 127.0.0.1
AnswerRe: Advice on "Friendly Urls" Pin
J4amieC20-Apr-06 0:28
J4amieC20-Apr-06 0:28 
Questionforms authentication Pin
ritu432120-Apr-06 0:15
ritu432120-Apr-06 0:15 
AnswerRe: forms authentication Pin
Mike Ellison20-Apr-06 2:40
Mike Ellison20-Apr-06 2:40 
QuestionThread was being aborted Pin
sohne20-Apr-06 0:06
sohne20-Apr-06 0:06 
AnswerRe: Thread was being aborted Pin
minhpc_bk20-Apr-06 16:13
minhpc_bk20-Apr-06 16:13 
Questiontwo headers for datagrid Pin
luckyv19-Apr-06 23:55
luckyv19-Apr-06 23:55 
AnswerRe: two headers for datagrid Pin
Mike Ellison20-Apr-06 2:39
Mike Ellison20-Apr-06 2:39 
Questionhow to create " help " Pin
scarfaced19-Apr-06 23:52
scarfaced19-Apr-06 23:52 
QuestionHow I can Restrict my user to dont save documet file on his/her local machine Pin
khurram mukhtar19-Apr-06 23:38
khurram mukhtar19-Apr-06 23:38 
AnswerRe: How I can Restrict my user to dont save documet file on his/her local machine Pin
Mike Ellison20-Apr-06 3:13
Mike Ellison20-Apr-06 3:13 
QuestionCatch differences between 2 DataTables Pin
ZiggY8119-Apr-06 23:12
ZiggY8119-Apr-06 23:12 
QuestionDownload and save File from Server Pin
dumser119-Apr-06 22:39
dumser119-Apr-06 22:39 
AnswerRe: Download and save File from Server Pin
minhpc_bk19-Apr-06 23:12
minhpc_bk19-Apr-06 23:12 
GeneralRe: Download and save File from Server Pin
Vishnu vardhan rao20-Apr-06 1:51
Vishnu vardhan rao20-Apr-06 1:51 
QuestionDates and validation Pin
Uma Kameswari19-Apr-06 22:38
Uma Kameswari19-Apr-06 22:38 
AnswerRe: Dates and validation Pin
varshavmane19-Apr-06 22:46
varshavmane19-Apr-06 22:46 
GeneralRe: Dates and validation Pin
Vishnu vardhan rao20-Apr-06 1:48
Vishnu vardhan rao20-Apr-06 1:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.