title: how to stay in the same jquery ui tab after insertion in asp.net mvc 3?
body: <p>I have used jquery ui tab effect. What I am trying is to insert data into a model..it works perfectly..I can insert record..but my question is how to stay on the same tab after insertion ?can I do it from the controller ? I am trying to do it in my asp.net mvc 3 application</p>
  
  <p><em>Here goes my Tab calling portion:</em></p>
  
  <pre><code>&lt;script&gt;
      $(function () {
          $("#tabs").tabs();
  
      });
  &lt;/script&gt;
  
  
  &lt;div id="tabs"&gt;
  &lt;ul&gt;
  
  &lt;li&gt;&lt;a href="#tabs-2"&gt;Proin dolor&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;@Html.ActionLink("Create Student","CreateStudent")&lt;/li&gt;
  &lt;li&gt;@Html.ActionLink("Student Details", "StudentDetails")&lt;/li&gt;
  
  &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Here goes the student details tab:</strong></p>
  
  <pre><code>@model IEnumerable&lt;accordionNtabs.Models.student&gt;
  
  
  &lt;table&gt;
      &lt;tr&gt;
          &lt;th&gt;
              name
          &lt;/th&gt;
          &lt;th&gt;
              birthdate
          &lt;/th&gt;
          &lt;th&gt;&lt;/th&gt;
      &lt;/tr&gt;
  
  @foreach (var item in Model) {
      &lt;tr&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.name)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.birthdate)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.ActionLink("Edit", "Edit", new { id = item.id }, new { id = "privacyLink" }) |
              @Html.ActionLink("Details", "Details", new { id=item.id }) |
              @Html.ActionLink("Delete", "Delete", new { id=item.id }) |
  
          &lt;/td&gt;
      &lt;/tr&gt;
  }
  
  
  
  &lt;/table&gt;
  </code></pre>
  
  <p><em>Here goes the Edit view which is rendered on clicking on the Edit link:</em></p>
  
  <p>@model accordionNtabs.Models.student</p>
  
  
  
  
  
  
  
  <p>@using (Html.BeginForm()) {
      @Html.ValidationSummary(true)
      
          student</p>
  
  <pre><code>    @Html.HiddenFor(model =&gt; model.id)
  
      &lt;div class="editor-label"&gt;
          @Html.LabelFor(model =&gt; model.name)
      &lt;/div&gt;
      &lt;div class="editor-field"&gt;
          @Html.EditorFor(model =&gt; model.name)
          @Html.ValidationMessageFor(model =&gt; model.name)
      &lt;/div&gt;
  
      &lt;div class="editor-label"&gt;
          @Html.LabelFor(model =&gt; model.birthdate)
      &lt;/div&gt;
      &lt;div class="editor-field"&gt;
          @Html.EditorFor(model =&gt; model.birthdate)
          @Html.ValidationMessageFor(model =&gt; model.birthdate)
      &lt;/div&gt;
  
      &lt;p&gt;
          &lt;input type="submit" value="Save" /&gt;
      &lt;/p&gt;
  &lt;/fieldset&gt;
  </code></pre>
  
  <p>}</p>
  
  
      @Html.ActionLink("Back to List", "Index")
  
  
  <p>I want the edit view to be loaded on the same tab.</p>