I'm still new to the whole MVC concept from .net web forms. I'm in the process of trying to convert some of our mobile sites from web forms to MVC. What I'm trying to grasp and learn is my web form had a grid view that I populated data from an array
by looping through it to fill the grid view. Also within the grid view there was a select that allowed he user to select that row and get more information that would populate in the same grid view. What would be to best way to convert this to a MVC? I've
been playing with the list view but not sure how to build the list view from the array and then be able to click that row to get more data on the same view or another view.
MasterV23
Member
113 Points
318 Posts
Hide HTML tags in view? Dynamically create list view?
Feb 22, 2012 10:51 PM|LINK
ricka6
All-Star
15070 Points
2272 Posts
Microsoft
Moderator
Re: Hide HTML tags in view? Dynamically create list view?
Feb 23, 2012 03:41 AM|LINK
MVC 3 Intro to ASP.NET MVC
MVC 4 Beta Intro to ASP.NET MVC
ASP.NET MVC 4 Mobile Features
See Working with the DropDownList Box and jQuery and My blog Cascading DropDownList in ASP.Net MVC
MasterV23
Member
113 Points
318 Posts
Re: Hide HTML tags in view? Dynamically create list view?
Feb 23, 2012 01:33 PM|LINK
Thanks for the direction. So instead of using a grid it would be best to use a drop down?
How would I display / hide the dropdown on the screen before it gets populated after a submit?
MasterV23
Member
113 Points
318 Posts
Re: Hide HTML tags in view? Dynamically create list view?
Feb 23, 2012 02:58 PM|LINK
Another question, when using the dropdownlist it has to contain data or it will throw a page error.
In the MVC concept should I place the drop down on another view to be rendered or can I have it on a current view but hide it since it's null?
ricka6
All-Star
15070 Points
2272 Posts
Microsoft
Moderator
Re: Hide HTML tags in view? Dynamically create list view?
Feb 23, 2012 05:56 PM|LINK
I'm not saying you should use the DDL. You need to go through a few tutorials to get a good idea of how to build your application.