In asp.net mvc, should I make my parameters in my action methods string or can I have them as Integers?
(say for page numbers)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Page numbers should be integers, not strings. ASP.NET MVC will convert them appropiately (as long as they are actually integers).
And as I said in my comment to your question (and also noted by MasterMind), you can have any type as parameter to your action method.