code_junkie

Passing a string as an argument to a controller

Nov 13th, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. //controller/action/2
  2. public ActionResult Action(int someInt)
  3. {
  4. //somenumber != null
  5. }
  6.  
  7. //controller/Action/x9294kskw
  8. public ActionResult Action(string someString)
  9. {
  10. //someString = null
  11. }
Add Comment
Please, Sign In to add comment