0
@using (Html.BeginForm("ShowNewProfessionalWindow", "UpdateOrganizationUID"))
{
     <div class="divContent">
    <h5>Organization UID:</h5> @Html.TextBoxFor(x => x.Org_UID)
         <input type="submit" id="btnSearch" value="Search" onclick="SubmitQuery()" class="login-button" />
    </div>
    <br />
    <br />   
}

<script>
       function SubmitQuery() {
         var txtOrg_UID = $('#Org_UID').val();                          
         var grid = $('#UpdateOrganizationUIDGrid').data('tGrid');
         grid.rebind({
         orgUID: txtOrg_UID
         });
       }

    </script>

因为当我单击按钮时,它会转到 beginform,然后转到 SubmitQuery() 但 txtOrg_UID 的值丢失了。

4

0 回答 0