我最难获得三种形式之一的动作,以便我可以调用正确的控制器动作。你怎么能做到这一点?
有没有办法获得正确的表格,以便我可以序列化正确的数据并将其发送给我的控制器?我想出了如何采取正确的行动
'@Url.Action("SearchByDemographic", "SearchPatients")'
我不知道如何序列化表单...这行不通...
$('#searchByDemographics').serialize()
这是在一个ajax调用中......
$('#searchByDemographics').submit(function (event) {
event.preventDefault();
var urlVal = this.action;// $('#searchByDemographics').attr('action');
var type = this.method; //$('#searchByDemographics').attr('method');
debugger;
event.preventDefault();
$.ajax({
url: '@Url.Action("SearchByDemographic", "SearchPatients")', //"SearchPatients/SearchByDemographic",
type: "POST", //this.method,
data: $('#searchByDemographics').serialize(),
dataType: "json",
contentType: 'application/json; charset=utf-8',
success: function (data) {
debugger;
$('#list').html(data);
bindData(data);
}
});
return false;
});
您如何获取表单以将其海化并将其返回给控制器。
更新: 我最近考虑不提交强类型模型,而是尝试通常的表单提交方法。没有骰子。我仍然得到 0 表单数据......我在这里不知所措。这里的任何人都对 Jquery UI 选项卡有任何经验,并且在每个选项卡上都有一个表单,可以将 JSON 数据返回到同一个选项卡,或者返回到立即打开的另一个选项卡?
更新:内部 HTML
<DIV class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix" sizset="0" jQuery17203071998293053285="41" sizcache05855682300806401="4"><SPAN id=ui-dialog-title-1 class=ui-dialog-title jQuery17203071998293053285="42"> </SPAN><A class="ui-dialog-titlebar-close ui-corner-all" role=button href="http://localhost:19283/Encounters/ShowAllEncounters?popId=2#" jQuery17203071998293053285="40"><SPAN class="ui-icon ui-icon-closethick" jQuery17203071998293053285="43">close</SPAN></A></DIV>
<DIV style="MIN-HEIGHT: 304px; WIDTH: auto; DISPLAY: block; HEIGHT: auto" class="ui-dialog-content ui-widget-content" jQuery17203071998293053285="38" scrolltop="0" scrollleft="0">
<DIV>
<DIV id=searchPatient class="float-left ui-tabs ui-widget ui-widget-content ui-corner-all" jQuery17203071998293053285="52">
<P></P>
<P></P>
<P></P>
<UL class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
<LI class="ui-state-default ui-corner-top" jQuery17203071998293053285="56"><A href="#searchByMRN" jQuery17203071998293053285="58">Search By MRN</A></LI>
<LI class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active" jQuery17203071998293053285="57"><A href="#searchByDemographics" jQuery17203071998293053285="59">Search By Demo</A></LI></UL>
<DIV style="MARGIN-TOP: 6px; DISPLAY: inline; FLOAT: left; MARGIN-LEFT: 6px; MARGIN-RIGHT: 6px" id=searchByMRN class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide">
<FORM id=formSearchByMRN method=post action=/SearchPatients/SearchByMRN?Length=13 data-ajax-update="#retTable" data-ajax-success="switchToResultTab" data-ajax-mode="replace" data-ajax-method="POST" data-ajax="true">
<P>
<UL>
<LI><LABEL for=MRN>MRN#</LABEL><BR><INPUT id=MRN name=MRN></LI>
<LI><LABEL for=MRNDrop>MRNDrop</LABEL><BR><SELECT id=MRNDrop name=MRNDrop><OPTION selected value=MPACMRN>Medipac</OPTION> <OPTION value=NWMRN>NorthWest</OPTION> <OPTION value=BEDFORD>Epic</OPTION> <OPTION value=CHILDRENS>Bedford</OPTION> <OPTION value=CHILDRENS>Childrens</OPTION> <OPTION value=MAGEE>Magee</OPTION> <OPTION value=PASSAVANT>Passavant</OPTION> <OPTION value=MERCY>Mercy</OPTION> <OPTION value=BEST>Medicare</OPTION> <OPTION value=HEALTHPLAN>4L Health Plan</OPTION> <OPTION value=EMPIID>EMPI</OPTION></SELECT></LI></UL>
<P></P><INPUT id=submitMRN value="Search by MRN" type=submit> </FORM></DIV>
<DIV style="WIDTH: 50%; DISPLAY: inline; FLOAT: left" id=searchByDemographics class="ui-tabs-panel ui-widget-content ui-corner-bottom" jQuery17203071998293053285="70">
<FORM id=searchByDemographics class="ui-tabs-panel ui-widget-content ui-corner-bottom" method=post action=/SearchPatients/SearchByDemographic>
<UL>
<LI><LABEL for=SSN>SSN</LABEL> <BR><INPUT id=SSN name=SSN></LI></UL>
<UL>
<P>Or</P></UL>
<UL>
<LI><LABEL for=FirstName>FirstName</LABEL> <BR><INPUT id=FirstName name=FirstName></LI>
<LI><LABEL for=LastName>LastName</LABEL> <BR><INPUT id=LastName name=LastName></LI>
<LI><LABEL for=dateOfBirth>dateOfBirth</LABEL> <BR><INPUT id=dateOfBirth name=dateOfBirth></LI>
<LI><LABEL for=Address1>Address1</LABEL> <BR><INPUT id=Address1 name=Address1></LI>
<LI><LABEL for=Address2>Address2</LABEL> <BR><INPUT id=Address2 name=Address2></LI>
<LI><LABEL for=City>City</LABEL> <BR><INPUT id=City name=City></LI>
<LI><LABEL for=State>State</LABEL> <BR><INPUT id=State name=State></LI>
<LI><LABEL for=Country>Country</LABEL> <BR><INPUT id=Country name=Country></LI>
<LI><LABEL for=PostCode>PostCode</LABEL> <BR><INPUT id=PostCode name=PostCode></LI></UL><INPUT id=submitDemo class=button value="Search By Demographics" type=submit> </FORM></DIV></DIV>
<DIV class="content-wrapper main-content clear-fix">
<DIV style="WIDTH: 826px" dir=ltr id=gbox_list class="ui-jqgrid ui-widget ui-widget-content ui-corner-all">
<DIV id=lui_list class="ui-widget-overlay jqgrid-overlay"></DIV>
<DIV style="DISPLAY: none" id=load_list class="loading ui-state-default ui-state-active" jQuery17203071998293053285="69">undefined</DIV>
<DIV style="WIDTH: 826px" id=gview_list class=ui-jqgrid-view>
<DIV class="ui-jqgrid-titlebar ui-widget-header ui-corner-top ui-helper-clearfix"><A style="RIGHT: 0px" class="ui-jqgrid-titlebar-close HeaderButton" role=link href="javascript:void(0)" jQuery17203071998293053285="66"><SPAN class="ui-icon ui-icon-circle-triangle-n"></SPAN></A><SPAN class=ui-jqgrid-title>My first grid</SPAN></DIV>
<DIV style="WIDTH: 826px" class="ui-state-default ui-jqgrid-hdiv" loading="false" jQuery17203071998293053285="67">
<DIV class=ui-jqgrid-hbox>
<TABLE style="WIDTH: 429px" class=ui-jqgrid-htable role=grid aria-labelledby=gbox_list border=0 cellSpacing=0 cellPadding=0>
<THEAD>
<TR class=ui-jqgrid-labels role=rowheader jQuery17203071998293053285="68">
<TH style="WIDTH: 34px" id=list_Select class="ui-state-default ui-th-column ui-th-ltr" role=columnheader jQuery17203071998293053285="60"><SPAN style="CURSOR: col-resize" class="ui-jqgrid-resize ui-jqgrid-resize-ltr"> </SPAN>
<DIV id=jqgh_list_Select class="ui-th-div-ie ui-jqgrid-sortable" sizset="0" sizcache05855682300806401="6">Select<SPAN class=s-ico sizset="0" sizcache05855682300806401="6"><SPAN class="ui-grid-ico-sort ui-icon-asc ui-state-disabled ui-icon ui-icon-triangle-1-n ui-sort-ltr" sort="asc"></SPAN><SPAN class="ui-grid-ico-sort ui-icon-desc ui-icon ui-icon-triangle-1-s ui-sort-ltr" sort="desc"></SPAN></SPAN></DIV></TH>
<TH style="WIDTH: 115px" id=list_First_Name class="ui-state-default ui-th-column ui-th-ltr" role=columnheader jQuery17203071998293053285="61"><SPAN style="CURSOR: col-resize" class="ui-jqgrid-resize ui-jqgrid-resize-ltr"> </SPAN>
<DIV id=jqgh_list_First_Name class="ui-th-div-ie ui-jqgrid-sortable">First Name<SPAN style="DISPLAY: none" class=s-ico><SPAN class="ui-grid-ico-sort ui-icon-asc ui-state-disabled ui-icon ui-icon-triangle-1-n ui-sort-ltr" sort="asc"></SPAN><SPAN class="ui-grid-ico-sort ui-icon-desc ui-state-disabled ui-icon ui-icon-triangle-1-s ui-sort-ltr" sort="desc"></SPAN></SPAN></DIV></TH>
<TH style="WIDTH: 115px" id=list_Last_Name class="ui-state-default ui-th-column ui-th-ltr" role=columnheader jQuery17203071998293053285="62"><SPAN style="CURSOR: col-resize" class="ui-jqgrid-resize ui-jqgrid-resize-ltr"> </SPAN>
<DIV id=jqgh_list_Last_Name class="ui-th-div-ie ui-jqgrid-sortable">First Name<SPAN style="DISPLAY: none" class=s-ico><SPAN class="ui-grid-ico-sort ui-icon-asc ui-state-disabled ui-icon ui-icon-triangle-1-n ui-sort-ltr" sort="asc"></SPAN><SPAN class="ui-grid-ico-sort ui-icon-desc ui-state-disabled ui-icon ui-icon-triangle-1-s ui-sort-ltr" sort="desc"></SPAN></SPAN></DIV></TH>
<TH style="WIDTH: 145px" id=list_MRN class="ui-state-default ui-th-column ui-th-ltr" role=columnheader jQuery17203071998293053285="63"><SPAN style="CURSOR: col-resize" class="ui-jqgrid-resize ui-jqgrid-resize-ltr"> </SPAN>
<DIV id=jqgh_list_MRN class="ui-th-div-ie ui-jqgrid-sortable">MRN<SPAN style="DISPLAY: none" class=s-ico><SPAN class="ui-grid-ico-sort ui-icon-asc ui-state-disabled ui-icon ui-icon-triangle-1-n ui-sort-ltr" sort="asc"></SPAN><SPAN class="ui-grid-ico-sort ui-icon-desc ui-state-disabled ui-icon ui-icon-triangle-1-s ui-sort-ltr" sort="desc"></SPAN></SPAN></DIV></TH></TR></THEAD></TABLE></DIV></DIV>
<DIV style="WIDTH: 826px; HEIGHT: 150px" class=ui-jqgrid-bdiv jQuery17203071998293053285="65">
<DIV style="POSITION: relative; HEIGHT: 0.01%">
<DIV></DIV>
<TABLE style="WIDTH: 429px" id=list class=ui-jqgrid-btable role=grid tabIndex=1 aria-labelledby=gbox_list aria-multiselectable=false border=0 cellSpacing=0 cellPadding=0 jQuery17203071998293053285="64">
<TBODY>
<TR style="HEIGHT: auto" class=jqgfirstrow role=row>
<TD style="WIDTH: 34px; HEIGHT: 0px" role=gridcell></TD>
<TD style="WIDTH: 115px; HEIGHT: 0px" role=gridcell></TD>
<TD style="WIDTH: 115px; HEIGHT: 0px" role=gridcell></TD>
<TD style="WIDTH: 145px; HEIGHT: 0px" role=gridcell></TD></TR></TBODY></TABLE></DIV></DIV></DIV>
<DIV id=rs_mlist class=ui-jqgrid-resize-mark> </DIV></DIV></DIV></DIV></DIV>
<DIV style="Z-INDEX: 1000" class="ui-resizable-handle ui-resizable-n" jQuery17203071998293053285="44"></DIV>
<DIV style="Z-INDEX: 1000" class="ui-resizable-handle ui-resizable-e" jQuery17203071998293053285="45"></DIV>
<DIV style="Z-INDEX: 1000" class="ui-resizable-handle ui-resizable-s" jQuery17203071998293053285="46"></DIV>
<DIV style="Z-INDEX: 1000" class="ui-resizable-handle ui-resizable-w" jQuery17203071998293053285="47"></DIV>
<DIV style="Z-INDEX: 1000" class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se ui-icon-grip-diagonal-se" jQuery17203071998293053285="48"></DIV>
<DIV style="Z-INDEX: 1000" class="ui-resizable-handle ui-resizable-sw" jQuery17203071998293053285="49"></DIV>
<DIV style="Z-INDEX: 1000" class="ui-resizable-handle ui-resizable-ne" jQuery17203071998293053285="50"></DIV>
<DIV style="Z-INDEX: 1000" class="ui-resizable-handle ui-resizable-nw" jQuery17203071998293053285="51"></DIV>
如您所见,从技术上讲,我在此页面上有两个表格,但您认为通过识别您使用的表格,即$('#formID').submit()
您应该能够减轻混淆。不知何故,这是行不通的。
更新:更改了 ID,但仍然无法正常工作......但是我确实使用 Ajax.BeginForm 让它工作
<DIV class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix" sizset="0" jQuery17205444165684387369="41" sizcache016230309957162758="4"><SPAN id=ui-dialog-title-1 class=ui-dialog-title jQuery17205444165684387369="42"> </SPAN><A class="ui-dialog-titlebar-close ui-corner-all" role=button href="http://localhost:19283/Encounters/ShowAllEncounters?popId=2#" jQuery17205444165684387369="40"><SPAN class="ui-icon ui-icon-closethick" jQuery17205444165684387369="43">close</SPAN></A></DIV>
<DIV style="MIN-HEIGHT: 304px; WIDTH: auto; DISPLAY: block; HEIGHT: auto" class="ui-dialog-content ui-widget-content" sizset="1" jQuery17205444165684387369="38" sizcache016230309957162758="8" scrolltop="0" scrollleft="0">
<DIV sizset="1" sizcache016230309957162758="8">
<DIV id=searchPatient class="float-left ui-tabs ui-widget ui-widget-content ui-corner-all" sizset="1" jQuery17205444165684387369="52" sizcache016230309957162758="8">
<P></P>
<P></P>
<P></P>
<UL class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
<LI class="ui-state-default ui-corner-top" jQuery17205444165684387369="55"><A href="#searchByMRN" jQuery17205444165684387369="57">Search By MRN</A></LI>
<LI class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active" jQuery17205444165684387369="56"><A href="#searchByDemographics" jQuery17205444165684387369="58">Search By Demo</A></LI></UL>
<DIV style="MARGIN-TOP: 6px; DISPLAY: inline; FLOAT: left; MARGIN-LEFT: 6px; MARGIN-RIGHT: 6px" id=searchByMRN class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide">
<FORM id=formSearchByMRN method=post action=/SearchPatients/SearchByMRN?Length=13 sizset="0" sizcache016230309957162758="8" data-ajax-update="#retTable" data-ajax-success="switchToResultTab" data-ajax-mode="replace" data-ajax-method="POST" data-ajax="true">
<P>
<UL>
<LI><LABEL for=MRN>MRN#</LABEL><BR><INPUT id=MRN name=MRN></LI>
<LI><LABEL for=MRNDrop>MRNDrop</LABEL><BR><SELECT id=MRNDrop name=MRNDrop><OPTION selected value=MPACMRN>Medipac</OPTION> <OPTION value=NWMRN>NorthWest</OPTION> <OPTION value=BEDFORD>Epic</OPTION> <OPTION value=CHILDRENS>Bedford</OPTION> <OPTION value=CHILDRENS>Childrens</OPTION> <OPTION value=MAGEE>Magee</OPTION> <OPTION value=PASSAVANT>Passavant</OPTION> <OPTION value=MERCY>Mercy</OPTION> <OPTION value=BEST>Medicare</OPTION> <OPTION value=HEALTHPLAN>4L Health Plan</OPTION> <OPTION value=EMPIID>EMPI</OPTION></SELECT></LI></UL>
<P></P><INPUT id=submitMRN value="Search by MRN" type=submit> </FORM></DIV>
<DIV style="WIDTH: 50%; DISPLAY: inline; FLOAT: left" id=searchByDemographicsDiv sizset="1" sizcache016230309957162758="8">
<FORM id=searchByDemographics class="ui-tabs-panel ui-widget-content ui-corner-bottom" method=post action=/SearchPatients/SearchByDemographic sizset="1" jQuery17205444165684387369="69" sizcache016230309957162758="8">
<UL>
<LI><LABEL for=SSN>SSN</LABEL> <BR><INPUT id=SSN name=SSN></LI></UL>
<UL>
<P>Or</P></UL>
<UL>
<LI><LABEL for=FirstName>FirstName</LABEL> <BR><INPUT id=FirstName name=FirstName></LI>
<LI><LABEL for=LastName>LastName</LABEL> <BR><INPUT id=LastName name=LastName></LI>
<LI><LABEL for=dateOfBirth>dateOfBirth</LABEL> <BR><INPUT id=dateOfBirth name=dateOfBirth></LI>
<LI><LABEL for=Address1>Address1</LABEL> <BR><INPUT id=Address1 name=Address1></LI>
<LI><LABEL for=Address2>Address2</LABEL> <BR><INPUT id=Address2 name=Address2></LI>
<LI><LABEL for=City>City</LABEL> <BR><INPUT id=City name=City></LI>
<LI><LABEL for=State>State</LABEL> <BR><INPUT id=State name=State></LI>
<LI><LABEL for=Country>Country</LABEL> <BR><INPUT id=Country name=Country></LI>
<LI><LABEL for=PostCode>PostCode</LABEL> <BR><INPUT id=PostCode name=PostCode></LI></UL><INPUT id=submitDemo class=button value="Search By Demographics" type=submit> </FORM></DIV></DIV>
<DIV class="content-wrapper main-content clear-fix">
<DIV style="WIDTH: 826px" dir=ltr id=gbox_list class="ui-jqgrid ui-widget ui-widget-content ui-corner-all">
<DIV id=lui_list class="ui-widget-overlay jqgrid-overlay"></DIV>
<DIV style="DISPLAY: none" id=load_list class="loading ui-state-default ui-state-active" jQuery17205444165684387369="68">undefined</DIV>
<DIV style="WIDTH: 826px" id=gview_list class=ui-jqgrid-view>
<DIV class="ui-jqgrid-titlebar ui-widget-header ui-corner-top ui-helper-clearfix"><A style="RIGHT: 0px" class="ui-jqgrid-titlebar-close HeaderButton" role=link href="javascript:void(0)" jQuery17205444165684387369="65"><SPAN class="ui-icon ui-icon-circle-triangle-n"></SPAN></A><SPAN class=ui-jqgrid-title>My first grid</SPAN></DIV>
<DIV style="WIDTH: 826px" class="ui-state-default ui-jqgrid-hdiv" loading="false" jQuery17205444165684387369="66">
<DIV class=ui-jqgrid-hbox>
<TABLE style="WIDTH: 429px" class=ui-jqgrid-htable role=grid aria-labelledby=gbox_list border=0 cellSpacing=0 cellPadding=0>
<THEAD>
<TR class=ui-jqgrid-labels role=rowheader jQuery17205444165684387369="67">
<TH style="WIDTH: 34px" id=list_Select class="ui-state-default ui-th-column ui-th-ltr" role=columnheader jQuery17205444165684387369="59"><SPAN style="CURSOR: col-resize" class="ui-jqgrid-resize ui-jqgrid-resize-ltr"> </SPAN>
<DIV id=jqgh_list_Select class="ui-th-div-ie ui-jqgrid-sortable" sizset="0" sizcache016230309957162758="6">Select<SPAN class=s-ico sizset="0" sizcache016230309957162758="6"><SPAN class="ui-grid-ico-sort ui-icon-asc ui-state-disabled ui-icon ui-icon-triangle-1-n ui-sort-ltr" sort="asc"></SPAN><SPAN class="ui-grid-ico-sort ui-icon-desc ui-icon ui-icon-triangle-1-s ui-sort-ltr" sort="desc"></SPAN></SPAN></DIV></TH>
<TH style="WIDTH: 115px" id=list_First_Name class="ui-state-default ui-th-column ui-th-ltr" role=columnheader jQuery17205444165684387369="60"><SPAN style="CURSOR: col-resize" class="ui-jqgrid-resize ui-jqgrid-resize-ltr"> </SPAN>
<DIV id=jqgh_list_First_Name class="ui-th-div-ie ui-jqgrid-sortable">First Name<SPAN style="DISPLAY: none" class=s-ico><SPAN class="ui-grid-ico-sort ui-icon-asc ui-state-disabled ui-icon ui-icon-triangle-1-n ui-sort-ltr" sort="asc"></SPAN><SPAN class="ui-grid-ico-sort ui-icon-desc ui-state-disabled ui-icon ui-icon-triangle-1-s ui-sort-ltr" sort="desc"></SPAN></SPAN></DIV></TH>
<TH style="WIDTH: 115px" id=list_Last_Name class="ui-state-default ui-th-column ui-th-ltr" role=columnheader jQuery17205444165684387369="61"><SPAN style="CURSOR: col-resize" class="ui-jqgrid-resize ui-jqgrid-resize-ltr"> </SPAN>
<DIV id=jqgh_list_Last_Name class="ui-th-div-ie ui-jqgrid-sortable">First Name<SPAN style="DISPLAY: none" class=s-ico><SPAN class="ui-grid-ico-sort ui-icon-asc ui-state-disabled ui-icon ui-icon-triangle-1-n ui-sort-ltr" sort="asc"></SPAN><SPAN class="ui-grid-ico-sort ui-icon-desc ui-state-disabled ui-icon ui-icon-triangle-1-s ui-sort-ltr" sort="desc"></SPAN></SPAN></DIV></TH>
<TH style="WIDTH: 145px" id=list_MRN class="ui-state-default ui-th-column ui-th-ltr" role=columnheader jQuery17205444165684387369="62"><SPAN style="CURSOR: col-resize" class="ui-jqgrid-resize ui-jqgrid-resize-ltr"> </SPAN>
<DIV id=jqgh_list_MRN class="ui-th-div-ie ui-jqgrid-sortable">MRN<SPAN style="DISPLAY: none" class=s-ico><SPAN class="ui-grid-ico-sort ui-icon-asc ui-state-disabled ui-icon ui-icon-triangle-1-n ui-sort-ltr" sort="asc"></SPAN><SPAN class="ui-grid-ico-sort ui-icon-desc ui-state-disabled ui-icon ui-icon-triangle-1-s ui-sort-ltr" sort="desc"></SPAN></SPAN></DIV></TH></TR></THEAD></TABLE></DIV></DIV>
<DIV style="WIDTH: 826px; HEIGHT: 150px" class=ui-jqgrid-bdiv jQuery17205444165684387369="64">
<DIV style="POSITION: relative; HEIGHT: 0.01%">
<DIV></DIV>
<TABLE style="WIDTH: 429px" id=list class=ui-jqgrid-btable role=grid tabIndex=1 aria-labelledby=gbox_list aria-multiselectable=false border=0 cellSpacing=0 cellPadding=0 jQuery17205444165684387369="63">
<TBODY>
<TR style="HEIGHT: auto" class=jqgfirstrow role=row>
<TD style="WIDTH: 34px; HEIGHT: 0px" role=gridcell></TD>
<TD style="WIDTH: 115px; HEIGHT: 0px" role=gridcell></TD>
<TD style="WIDTH: 115px; HEIGHT: 0px" role=gridcell></TD>
<TD style="WIDTH: 145px; HEIGHT: 0px" role=gridcell></TD></TR></TBODY></TABLE></DIV></DIV></DIV>
<DIV id=rs_mlist class=ui-jqgrid-resize-mark> </DIV></DIV></DIV></DIV></DIV>
这里是Ajax.BeginForm(...){
@using (Ajax.BeginForm("SearchByDemographic", "SearchPatients", null, new AjaxOptions { HttpMethod = "POST", LoadingElementId = Url.Content("~/Images/ajax-loader.gif"), OnSuccess = "binddata", OnFailure = "FailToTab" }, new { id = "searchByDemographics" })){