Skip to main content

asp.net - ASP.NET4.0 URL rewriting-code for four parameters -


i have page go.aspx accepts 4 parameters a,b,c,d go.aspx?a=a&b=b&c=c&d=d. way url-rewrite work change go/a/b/c/d. not parameters passed @ moment, possible scenarios are:

  1. go.aspx?a=a
  2. go.aspx?a=a&b=b
  3. go.aspx?a=a&b=b&c=c
  4. go.aspx?b=b&c=c
  5. go.aspx?c=c
  6. go.aspx?c=c&d=d
  7. go.aspx?b=b&c=c&d=d
  8. go.aspx?b=b
  9. go.aspx?b=b&d=d

is writing route each scenario option or can 1 route modified cover scenarios above?

asp.net - asp.net4.0 url rewriting-code 4 parameters - stack overflow

learn, share, build

each month, on 50 million developers come stack overflow learn, share knowledge, , build careers.

join world’s largest developer community.

sign up

i have page go.aspx accepts 4 parameters a,b,c,d go.aspx?a=a&b=b&c=c&d=d. way url-rewrite work change go/a/b/c/d. not parameters passed @ moment, possible scenarios are:

  1. go.aspx?a=a
  2. go.aspx?a=a&b=b
  3. go.aspx?a=a&b=b&c=c
  4. go.aspx?b=b&c=c
  5. go.aspx?c=c
  6. go.aspx?c=c&d=d
  7. go.aspx?b=b&c=c&d=d
  8. go.aspx?b=b
  9. go.aspx?b=b&d=d

is writing route each scenario option or can 1 route modified cover scenarios above?

share|improve question
    
would there not 16 possible scenarios? – irishchieftain jul 8 '12 @ 1:05
    
yeah there be, these one's handling other cases ignored , user redirected. – ashwin singh jul 8 '12 @ 4:22

your answer

 
discard

posting answer, agree privacy policy , terms of service.

browse other questions tagged or ask own question.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -