How to create dynamic properties in Model and use in Controller and View. - MVC

advertisements

I am looking for a solution which creates dynamic properties to be create in Model.

I want to use them in my View and Controller.

Can any one have idea, how to create it?

I am having scenario in my project where one page will be having options to be lets say Profile2, Profile5 etc.

Profile 2 can have two URLs to be submit from user.

Profile 5 can have five URLs to be submit from user.

and

So on........

Is there any solution or alternative to do this????


He Amit , For your situation "I am having scenario in my project where one page will be having options to be lets say Profile2, Profile5 etc.

Profile 2 can have two URLs to be submit from user.

Profile 5 can have five URLs to be submit from use"

You want to put this url in your properties ok. SO do one thing create a property like this.

public List<string> urlList {get;set;}

use this in your property andd add url in the list. you can add n no of urls.