This is a migrated thread and some comments may be shown as answers.

[Solved] Is there a way to define a form on first tab

2 Answers 129 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ed
Top achievements
Rank 1
Ed asked on 11 Apr 2011, 10:17 PM
I am using a Tab for an edit profile feature. Each tab is a part of the users profile. I am using the "load on demand" for each tab. I would like the first tab to open and already have a form on it. All other tabs are "load on demand". However I don't want that for the first tab. I want that to display open with the form on it. I can't figure out how to do this. Is there an example of this using "Razor" syntax? I believe this is a common scenario and would be useful to many developers in the community?

Many Thanks

2 Answers, 1 is accepted

Sort by
0
nachid
Top achievements
Rank 1
answered on 14 Apr 2011, 10:19 PM
Instead of

.LoadContentFrom


use
 

.Content(() => Html.RenderPartial(@"Profile1", Model.Profile1));

 

 

0
Ed
Top achievements
Rank 1
answered on 18 Apr 2011, 02:24 AM
Thank you for your help. I tried implementing your suggestion and it works great!
Tags
TabStrip
Asked by
Ed
Top achievements
Rank 1
Answers by
nachid
Top achievements
Rank 1
Ed
Top achievements
Rank 1
Share this question
or