ASP.NET MVC 2 Dynamic QueryString Management

Posted by vikas anand on Stack Overflow See other posts from Stack Overflow or by vikas anand
Published on 2010-05-18T11:32:27Z Indexed on 2010/05/19 18:00 UTC
Read the original article Hit count: 516

Filed under:

Hello All,

I am very new to ASP.NET MVC and currently, I am involved in developing a new application in ASP.NET MVC 2. I am having problem in managing a long querystring parameters that comes from dBase.

For example, in any non-mvc app the following URL works well:

http ://example.com/test.aspx?first_name=fname&last_name=lname&email_id=email&address1=add1&address2=add2&city=city&state=state&zip_code=zip and so on.

The QueryString parameter can be determined on the fly (i.e. at run-time). Now for dynamic QueryString how routing will be done?

Also for a simple URL, the URL will be as follows (in ASP.NET MVC):

http ://example.com/test/id/category

But for above mentioned dynamic & long QueryString how the URL will look like? Will all the QueryString parameters be separated through slash (/)?

Thanks in advance for your help.

Best Regards,

Vikas Anand

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2