Hello,
I have an entire page wrapped in a WARP. Everything works fine until after an async postback. After the postback, most buttons are disabled, a few are not. Specifically, all of the delete buttons (Gridview Command Fields) are not firing events after an async postback, and the complete step button does not fire unless it is wrapped in its own async panel. I "could" wrap all of my buttons and command fields in their own WARP's, but there has to be a btter solution. Here is some code. Sorry there is so much.
<table> <tr align="center"> <td style="width:800px"> <igmisc:WebPanel ID="wpAssignContractInfo" runat="server" StyleSetName="" Expanded="false" Enabled="false" Width="100%" EnableAppStyling="True"> <Header TextAlignment="Center" Text="Enter Contract Information" /> <Template> <table> <tr> <td> Contract Name: <asp:TextBox runat="server" ID="tbContractName" /> </td> </tr> <tr> <td> Contract Number: <igtxt:WebMaskEdit ID="tbContractNum" runat="server" InputMask="#######"> </igtxt:WebMaskEdit> </td> </tr> </table> <table> <tr> <td> POP From: </td> <td > <igsch:WebDateChooser ID="dateFrom" runat="server" MinDate="2009-01-01" NullDateLabel="select start date" Width="130"> <CalendarLayout ShowMonthDropDown="False" ShowYearDropDown="True" DayNameFormat="FirstLetter" TitleFormat="Month"> </CalendarLayout> </igsch:WebDateChooser> </td> <td >To: </td> <td> <igsch:WebDateChooser ID="dateTo" runat="server" MinDate="2009-01-02" NullDateLabel="select through date" Width="130"> <CalendarLayout ShowMonthDropDown="False" ShowYearDropDown="True" DayNameFormat="FirstLetter" TitleFormat="Month"> </CalendarLayout> </igsch:WebDateChooser> </td> </tr> </table> <table> <tr> <td>Type: </td> <td> <asp:DropDownList ID="ddlContractType" runat="server" Width="200px" DataTextField="ItemText" DataValueField="ItemValue"/> </td> </tr> <tr> <td colspan="2"> <br /> <asp:Button runat="server" ID="btnEndContractSetup" Text="Step Complete" onclick="btnEndContractSetup_Click" ValidationGroup="AddContract" CausesValidation="true" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="dateFrom" ErrorMessage="From Date Required" Display="None" ValidationGroup="AddContract" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="dateTo" ErrorMessage="To Date Required" Display="None" ValidationGroup="AddContract" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbContractName" ErrorMessage="Contract Name Required" Display="None" ValidationGroup="AddContract" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="tbContractNum" ErrorMessage="Contract Number Required" Display="None" ValidationGroup="AddContract" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="ddlContractType" ErrorMessage="Contract Type Required" Display="None" ValidationGroup="AddContract" /> <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="BulletList" ShowMessageBox="true" ShowSummary="false" ValidationGroup="AddContract" /> </td> </tr> </table> </Template> </igmisc:WebPanel><igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel1" runat="server" RefreshRequest="WebAsyncRefreshPanel1_RefreshRequest" Width="100%" InitializePanel="WebAsyncRefreshPanel2_InitializePanel" > <igmisc:WebPanel ID="wpAssignRoles" runat="server" StyleSetName="" Expanded="false" Enabled="false" Width="100%" EnableAppStyling="True"> <Header TextAlignment="Center" Text="Assign Roles"/> <Template> <table width="100%"> <tr> <td> <asp:GridView ID="gvPM" AutoGenerateColumns="false" Width="100%" runat="server" OnRowDataBound="gvPM_RowDataBound" ShowHeader="false"> <Columns> <asp:TemplateField ItemStyle-Width="1px"> <ItemTemplate> <a href="BLOCKED SCRIPTexpandcollapse('div<%# Eval("id") %>', 'one', '1');"> <img id="imgdiv<%# Eval("id") %>" alt="Click to show details" width="9px" border="0" src="Images/plus.gif"/> </a> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="ItemValue" ItemStyle-Width="99%" ItemStyle-HorizontalAlign="Center" /> <asp:TemplateField> <ItemTemplate> <tr> <td colspan="100%"> <div id="div<%#Eval("id") %>" style="display:none;position:relative;left:15px;OVERFLOW: auto;WIDTH:97%"> <asp:GridView ID="gvPMDetails" runat="server" AutoGenerateColumns="false" Width="100%" ShowHeader="false" OnRowDeleting="gvPmDetails_RowDeleting" > <Columns> <asp:CommandField ShowEditButton="false" ShowDeleteButton =true /> <asp:TemplateField Visible="false"> <ItemTemplate> <asp:Label runat="server" ID="lblId" Text='<%# Bind("UserId") %>' /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="UserMachineName" /> </Columns> </asp:GridView> <table width="100%"> <tr> <td style="width:50%; text-align:right"> <asp:DropDownList runat="server" ID="ddlAddPM" DataTextField="UserMachineName" Width="250px" DataValueField="Id" > </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlAddPM" Display="None" ErrorMessage="Select a user from the Drop Down List" ValidationGroup="PM" /> </td> <td style="width:50%; text-align:left"> <asp:Button ID="btnAddPM" runat="server" Text="Assign PM Role" OnClick="btnAddPM_Click" ValidationGroup="PM" /> <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="PM" DisplayMode="List" ShowMessageBox="true" ShowSummary="false" /> </td> </tr> </table> </div> </td> </tr> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <br /> <asp:GridView ID="gvContracts" AutoGenerateColumns="false" Width="100%" runat="server" OnRowDataBound="gvContracts_RowDataBound" ShowHeader="false"> <Columns> <asp:TemplateField> <ItemTemplate> <a href="BLOCKED SCRIPTexpandcollapse('div<%# Eval("id") %>', 'one', '1');"> <img id="imgdiv<%# Eval("id") %>" alt="Click to show details" width="9px" border="0" src="Images/plus.gif"/> </a> </ItemTemplate> <ItemStyle Width="1px" /> </asp:TemplateField> <asp:BoundField DataField="ItemValue" ItemStyle-Width="99%" ItemStyle-HorizontalAlign="Center" /> <asp:TemplateField> <ItemTemplate> <tr> <td colspan="100%"> <div id="div<%#Eval("id") %>" style="display:none;position:relative;left:15px;OVERFLOW: auto;WIDTH:97%"> <asp:GridView ID="gvContractsDetails" runat="server" AutoGenerateColumns="false" Width="100%" ShowHeader="false" OnRowDeleting="gvContractsDetails_RowDeleting"> <Columns> <asp:CommandField ShowDeleteButton="true" ShowEditButton="false" /> <asp:TemplateField Visible="false"> <ItemTemplate> <asp:Label runat="server" ID="lblId" Text='<%# Bind("UserId") %>' /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="UserMachineName" /> </Columns> </asp:GridView> <table width="100%"> <tr> <td style="width:50%; text-align:right"> <asp:DropDownList ID="ddlAddContracts" runat="server" Width="250px" DataValueField="Id" DataTextField="UserMachineName" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator876" runat="server" ControlToValidate="ddlAddContracts" Display="None" ErrorMessage="Select a user from the Drop Down List" ValidationGroup="Contracts" /> </td> <td style="width:50%; text-align:left"> <asp:ValidationSummary ID="ValidationSummary2" runat="server" ValidationGroup="Contracts" DisplayMode="List" ShowMessageBox="true" ShowSummary="false" /> <asp:Button ID="btnAddContracts" runat="server" Text="Assign Contracts Role" OnClick="btnAddContracts_Click" ValidationGroup="Contracts" /> </td> </tr> </table> </div> </td> </tr> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <br /> <asp:GridView ID="gvSubcontracts" AutoGenerateColumns="false" Width="100%" runat="server" OnRowDataBound="gvSubcontracts_RowDataBound" ShowHeader="false"> <Columns> <asp:TemplateField> <ItemTemplate> <a href="BLOCKED SCRIPTexpandcollapse('div<%# Eval("id") %>', 'one', '1');"> <img id="imgdiv<%# Eval("id") %>" alt="Click to show details" width="9px" border="0" src="Images/plus.gif"/> </a> </ItemTemplate> <ItemStyle Width="1px" /> </asp:TemplateField> <asp:BoundField DataField="ItemValue" ItemStyle-Width="99%" ItemStyle-HorizontalAlign="Center" /> <asp:TemplateField> <ItemTemplate> <tr> <td colspan="100%"> <div id="div<%#Eval("id") %>" style="display:none;position:relative;left:15px;OVERFLOW: auto;WIDTH:97%"> <asp:GridView ID="gvSubcontractsDetails" runat="server" AutoGenerateColumns="false" Width="100%" ShowHeader="false" OnRowDeleting="gvSubcontractsDetails_RowDeleting"> <Columns> <asp:CommandField ShowDeleteButton="true" ShowEditButton="false" /> <asp:TemplateField Visible="false"> <ItemTemplate> <asp:Label runat="server" ID="lblId" Text='<%# Bind("UserId") %>' /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="UserMachineName" /> </Columns> </asp:GridView> <table width="100%"> <tr> <td style="width:50%; text-align:right"> <asp:DropDownList ID="ddlAddSubcontracts" runat="server" Width="250px" DataValueField="Id" DataTextField="UserMachineName" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlAddSubcontracts" Display="None" ErrorMessage="Select a user from the Drop Down List" ValidationGroup="subcontracts" /> </td> <td style="width:50%; text-align:left"> <asp:ValidationSummary ID="ValidationSummary3" runat="server" ValidationGroup="subcontracts" DisplayMode="List" ShowMessageBox="true" ShowSummary="false" /> <asp:Button ID="btnAddSubcontracts" runat="server" Text="Assign Subcontracts Role" OnClick="btnAddSubcontracts_Click" ValidationGroup="subcontracts" /> </td> </tr> </table> </div> </td> </tr> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <br /> <asp:GridView ID="gvFinance" AutoGenerateColumns="false" Width="100%" runat="server" OnRowDataBound="gvFinance_RowDataBound" ShowHeader="false"> <Columns> <asp:TemplateField> <ItemTemplate> <a href="BLOCKED SCRIPTexpandcollapse('div<%# Eval("id") %>', 'one', '1');"> <img id="imgdiv<%# Eval("id") %>" alt="Click to show details" width="9px" border="0" src="Images/plus.gif"/> </a> </ItemTemplate> <ItemStyle Width="1px" /> </asp:TemplateField> <asp:BoundField DataField="ItemValue" ItemStyle-Width="99%" ItemStyle-HorizontalAlign="Center" /> <asp:TemplateField> <ItemTemplate> <tr> <td colspan="100%"> <div id="div<%#Eval("id") %>" style="display:none;position:relative;left:15px;OVERFLOW: auto;WIDTH:97%"> <asp:GridView ID="gvFinanceDetails" runat="server" AutoGenerateColumns="false" Width="100%" ShowHeader="false" OnRowDeleting="gvFinanceDetails_RowDeleting"> <Columns> <asp:CommandField ShowDeleteButton="true" ShowEditButton="false" /> <asp:TemplateField Visible="false"> <ItemTemplate> <asp:Label runat="server" ID="lblId" Text='<%# Bind("UserId") %>' /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="UserMachineName" /> </Columns> </asp:GridView> <table width="100%" style="height:auto"> <tr> <td style="width:50%; text-align:right"> <asp:DropDownList ID="ddlAddFinance" runat="server" Width="250px" DataValueField="Id" DataTextField="UserMachineName" /> <asp:RequiredFieldValidator runat="server" ControlToValidate="ddlAddFinance" Display="None" ErrorMessage="Select a user from the Drop Down List" ValidationGroup="finance" Enabled="true" /> </td> <td style="width:50%; text-align:left"> <asp:Button ID="btnAddFinance" CausesValidation="true" runat="server" Text="Assign Finance Role" ValidationGroup="finance" OnClick="btnAddFinance_Click" /> <asp:ValidationSummary ID="ValidationSummary4" runat="server" ValidationGroup="finance" DisplayMode="List" ShowMessageBox="true" ShowSummary="false" Enabled="true" /> </td> </table> </div> </td> </tr> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <br /> <asp:GridView ID="gvBilling" AutoGenerateColumns="false" Width="100%" runat="server" OnRowDataBound="gvBilling_RowDataBound" ShowHeader="false"> <Columns> <asp:TemplateField> <ItemTemplate> <a href="BLOCKED SCRIPTexpandcollapse('div<%# Eval("id") %>', 'one', '1');"> <img id="imgdiv<%# Eval("id") %>" alt="Click to show details" width="9px" border="0" src="Images/plus.gif"/> </a> </ItemTemplate> <ItemStyle Width="1px" /> </asp:TemplateField> <asp:BoundField DataField="ItemValue" ItemStyle-Width="99%" ItemStyle-HorizontalAlign="Center" /> <asp:TemplateField> <ItemTemplate> <tr> <td colspan="100%"> <div id="div<%#Eval("id") %>" style="display:none;position:relative;left:15px;OVERFLOW: auto;WIDTH:97%"> <asp:GridView ID="gvBillingDetails" runat="server" AutoGenerateColumns="false" Width="100%" ShowHeader="false" OnRowDeleting="gvBillingDetails_RowDeleting"> <Columns> <asp:CommandField ShowDeleteButton="true" ShowEditButton="false" /> <asp:TemplateField Visible="false"> <ItemTemplate> <asp:Label runat="server" ID="lblId" Text='<%# Bind("UserId") %>' /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="UserMachineName" /> </Columns> </asp:GridView> <table width="100%" style="height:auto"> <tr> <td style="width:50%; text-align:right"> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddlAddBilling" Display="None" ErrorMessage="Select a user from the Drop Down List" ValidationGroup="billing" /> <asp:DropDownList ID="ddlAddBilling" runat="server" Width="250px" DataValueField="Id" DataTextField="UserMachineName" /> </td> <td style="width:50%; text-align:left"> <asp:ValidationSummary ID="ValidationSummary5" runat="server" ValidationGroup="billing" DisplayMode="List" ShowMessageBox="true" ShowSummary="false" /> <asp:Button ID="btnAddBilling" CausesValidation="true" runat="server" Text="Assign Billing Role" ValidationGroup="billing" OnClick="btnAddBilling_Click" /> </td> </table> </div> </td> </tr> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <br /> <asp:GridView ID="gvConsultant" AutoGenerateColumns="false" Width="100%" runat="server" OnRowDataBound="gvConsultant_RowDataBound" ShowHeader="false"> <Columns> <asp:TemplateField> <ItemTemplate> <a href="BLOCKED SCRIPTexpandcollapse('div<%# Eval("id") %>', 'one', '1');"> <img id="imgdiv<%# Eval("id") %>" alt="Click to show details" width="9px" border="0" src="Images/plus.gif"/> </a> </ItemTemplate> <ItemStyle Width="1px" /> </asp:TemplateField> <asp:BoundField DataField="ItemValue" ItemStyle-Width="99%" ItemStyle-HorizontalAlign="Center" /> <asp:TemplateField> <ItemTemplate> <tr> <td colspan="100%"> <div id="div<%#Eval("id") %>" style="display:none;position:relative;left:15px;OVERFLOW: auto;WIDTH:97%"> <asp:GridView ID="gvConsultantDetails" runat="server" AutoGenerateColumns="false" Width="100%" ShowHeader="false" OnRowDeleting="gvConsultantDetails_RowDeleting"> <Columns> <asp:CommandField ShowDeleteButton="true" ShowEditButton="false" /> <asp:TemplateField Visible="false"> <ItemTemplate> <asp:Label runat="server" ID="lblId" Text='<%# Bind("UserId") %>' /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="UserMachineName" /> </Columns> </asp:GridView> <table width="100%" style="height:auto"> <tr> <td style="width:50%; text-align:right"> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ddlAddConsultant" Display="None" ErrorMessage="Select a user from the Drop Down List" ValidationGroup="Consultant" /> <asp:DropDownList ID="ddlAddConsultant" runat="server" Width="250px" DataValueField="Id" DataTextField="UserMachineName" /> </td> <td style="width:50%; text-align:left"> <asp:ValidationSummary ID="ValidationSummary6" runat="server" ValidationGroup="Consultant" DisplayMode="List" ShowMessageBox="true" ShowSummary="false" /> <asp:Button ID="btnAddConsultant" CausesValidation="true" runat="server" Text="Assign Consultant Role" ValidationGroup="Consultant" OnClick="btnAddConsultant_Click" /> </td> </table> </div> </td> </tr> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <br /> <asp:GridView ID="gvCorporateSecurity" AutoGenerateColumns="false" Width="100%" runat="server" OnRowDataBound="gvCorporateSecurity_RowDataBound" ShowHeader="false"> <Columns> <asp:TemplateField> <ItemTemplate> <a href="BLOCKED SCRIPTexpandcollapse('div<%# Eval("id") %>', 'one', '1');"> <img id="imgdiv<%# Eval("id") %>" alt="Click to show details" width="9px" border="0" src="Images/plus.gif"/> </a> </ItemTemplate> <ItemStyle Width="1px" /> </asp:TemplateField> <asp:BoundField DataField="ItemValue" ItemStyle-Width="99%" ItemStyle-HorizontalAlign="Center" /> <asp:TemplateField> <ItemTemplate> <tr> <td colspan="100%"> <div id="div<%#Eval("id") %>" style="display:none;position:relative;left:15px;OVERFLOW: auto;WIDTH:97%"> <asp:GridView ID="gvCorporateSecurityDetails" runat="server" AutoGenerateColumns="false" Width="100%" ShowHeader="false" OnRowDeleting="gvCorporateSecurityDetails_RowDeleting"> <Columns> <asp:CommandField ShowDeleteButton="true" ShowEditButton="false" /> <asp:TemplateField Visible="false"> <ItemTemplate> <asp:Label runat="server" ID="lblId" Text='<%# Bind("UserId") %>' /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="UserMachineName" /> </Columns> </asp:GridView> <table width="100%" style="height:auto"> <tr> <td style="width:50%; text-align:right"> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="ddlAddCorporateSecurity" Display="None" ErrorMessage="Select a user from the Drop Down List" ValidationGroup="CorporateSecurity" /> <asp:DropDownList ID="ddlAddCorporateSecurity" runat="server" Width="250px" DataValueField="Id" DataTextField="UserMachineName" /> </td> <td style="width:50%; text-align:left"> <asp:ValidationSummary ID="ValidationSummary7" runat="server" ValidationGroup="CorporateSecurity" DisplayMode="List" ShowMessageBox="true" ShowSummary="false" /> <asp:Button ID="btnAddCorporateSecurity" CausesValidation="true" runat="server" Text="Assign Corporate Security Role" ValidationGroup="CorporateSecurity" OnClick="btnAddCorporateSecurity_Click" /> </td> </table> </div> </td> </tr> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <br /> <asp:GridView ID="gvCustomer" AutoGenerateColumns="false" Width="100%" runat="server" OnRowDataBound="gvCustomer_RowDataBound" ShowHeader="false"> <Columns> <asp:TemplateField> <ItemTemplate> <a href="BLOCKED SCRIPTexpandcollapse('div<%# Eval("id") %>', 'one', '1');"> <img id="imgdiv<%# Eval("id") %>" alt="Click to show details" width="9px" border="0" src="Images/plus.gif"/> </a> </ItemTemplate> <ItemStyle Width="1px" /> </asp:TemplateField> <asp:BoundField DataField="ItemValue" ItemStyle-Width="99%" ItemStyle-HorizontalAlign="Center" /> <asp:TemplateField> <ItemTemplate> <tr> <td colspan="100%"> <div id="div<%#Eval("id") %>" style="display:none;position:relative;left:15px;OVERFLOW: auto;WIDTH:97%"> <asp:GridView ID="gvCustomerDetails" runat="server" AutoGenerateColumns="false" Width="100%" ShowHeader="false" OnRowDeleting="gvCustomerDetails_RowDeleting"> <Columns> <asp:CommandField ShowDeleteButton="true" ShowEditButton="false" /> <asp:TemplateField Visible="false"> <ItemTemplate> <asp:Label runat="server" ID="lblId" Text='<%# Bind("UserId") %>' /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="UserMachineName" /> </Columns> </asp:GridView> <table width="100%" style="height:auto"> <tr> <td style="width:50%; text-align:right"> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="ddlAddCustomer" Display="None" ErrorMessage="Select a user from the Drop Down List" ValidationGroup="Customer" /> <asp:DropDownList ID="ddlAddCustomer" runat="server" Width="250px" DataValueField="Id" DataTextField="UserMachineName" /> </td> <td style="width:50%; text-align:left"> <asp:ValidationSummary ID="ValidationSummary8" runat="server" ValidationGroup="Customer" DisplayMode="List" ShowMessageBox="true" ShowSummary="false" /> <asp:Button ID="btnAddCustomer" CausesValidation="true" runat="server" Text="Assign Customer Role" ValidationGroup="Customer" OnClick="btnAddCustomer_Click" /> </td> </table> </div> </td> </tr> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <br /> <asp:GridView ID="gvExternal" AutoGenerateColumns="false" Width="100%" runat="server" OnRowDataBound="gvExternal_RowDataBound" ShowHeader="false"> <Columns> <asp:TemplateField> <ItemTemplate> <a href="BLOCKED SCRIPTexpandcollapse('div<%# Eval("id") %>', 'one', '1');"> <img id="imgdiv<%# Eval("id") %>" alt="Click to show details" width="9px" border="0" src="Images/plus.gif"/> </a> </ItemTemplate> <ItemStyle Width="1px" /> </asp:TemplateField> <asp:BoundField DataField="ItemValue" ItemStyle-Width="99%" ItemStyle-HorizontalAlign="Center" /> <asp:TemplateField> <ItemTemplate> <tr> <td colspan="100%"> <div id="div<%#Eval("id") %>" style="display:none;position:relative;left:15px;OVERFLOW: auto;WIDTH:97%"> <asp:GridView ID="gvExternalDetails" runat="server" AutoGenerateColumns="false" Width="100%" ShowHeader="false" OnRowDeleting="gvExternalDetails_RowDeleting"> <Columns> <asp:CommandField ShowDeleteButton="true" ShowEditButton="false" /> <asp:TemplateField Visible="false"> <ItemTemplate> <asp:Label runat="server" ID="lblId" Text='<%# Bind("UserId") %>' /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="UserMachineName" /> </Columns> </asp:GridView> <table width="100%" style="height:auto"> <tr> <td style="width:50%; text-align:right"> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="ddlAddExternal" Display="None" ErrorMessage="Select a user from the Drop Down List" ValidationGroup="External" /> <asp:DropDownList ID="ddlAddExternal" runat="server" Width="250px" DataValueField="Id" DataTextField="UserMachineName" /> </td> <td style="width:50%; text-align:left"> <asp:ValidationSummary ID="ValidationSummary9" runat="server" ValidationGroup="External" DisplayMode="List" ShowMessageBox="true" ShowSummary="false" /> <asp:Button ID="btnAddExternal" CausesValidation="true" runat="server" Text="Assign External Role" ValidationGroup="External" OnClick="btnAddExternal_Click" /> </td> </table> </div> </td> </tr> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <br /> <asp:GridView ID="gvLegal" AutoGenerateColumns="false" Width="100%" runat="server" OnRowDataBound="gvLegal_RowDataBound" ShowHeader="false"> <Columns> <asp:TemplateField> <ItemTemplate> <a href="BLOCKED SCRIPTexpandcollapse('div<%# Eval("id") %>', 'one', '1');"> <img id="imgdiv<%# Eval("id") %>" alt="Click to show details" width="9px" border="0" src="Images/plus.gif"/> </a> </ItemTemplate> <ItemStyle Width="1px" /> </asp:TemplateField> <asp:BoundField DataField="ItemValue" ItemStyle-Width="99%" ItemStyle-HorizontalAlign="Center" /> <asp:TemplateField> <ItemTemplate> <tr> <td colspan="100%"> <div id="div<%#Eval("id") %>" style="display:none;position:relative;left:15px;OVERFLOW: auto;WIDTH:97%"> <asp:GridView ID="gvLegalDetails" runat="server" AutoGenerateColumns="false" Width="100%" ShowHeader="false" OnRowDeleting="gvLegalDetails_RowDeleting"> <Columns> <asp:CommandField ShowDeleteButton="true" ShowEditButton="false" /> <asp:TemplateField Visible="false"> <ItemTemplate> <asp:Label runat="server" ID="lblId" Text='<%# Bind("UserId") %>' /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="UserMachineName" /> </Columns> </asp:GridView> <table width="100%" style="height:auto"> <tr> <td style="width:50%; text-align:right"> <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="ddlAddLegal" Display="None" ErrorMessage="Select a user from the Drop Down List" ValidationGroup="Legal" /> <asp:DropDownList ID="ddlAddLegal" runat="server" Width="250px" DataValueField="Id" DataTextField="UserMachineName" /> </td> <td style="width:50%; text-align:left"> <asp:ValidationSummary ID="ValidationSummary10" runat="server" ValidationGroup="Legal" DisplayMode="List" ShowMessageBox="true" ShowSummary="false" /> <asp:Button ID="btnAddLegal" CausesValidation="true" runat="server" Text="Assign Legal Role" ValidationGroup="Legal" OnClick="btnAddLegal_Click" /> </td> </table> </div> </td> </tr> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <br /> <asp:GridView ID="gvPricing" AutoGenerateColumns="false" Width="100%" runat="server" OnRowDataBound="gvPricing_RowDataBound" ShowHeader="false"> <Columns> <asp:TemplateField> <ItemTemplate> <a href="BLOCKED SCRIPTexpandcollapse('div<%# Eval("id") %>', 'one', '1');"> <img id="imgdiv<%# Eval("id") %>" alt="Click to show details" width="9px" border="0" src="Images/plus.gif"/> </a> </ItemTemplate> <ItemStyle Width="1px" /> </asp:TemplateField> <asp:BoundField DataField="ItemValue" ItemStyle-Width="99%" ItemStyle-HorizontalAlign="Center" /> <asp:TemplateField> <ItemTemplate> <tr> <td colspan="100%"> <div id="div<%#Eval("id") %>" style="display:none;position:relative;left:15px;OVERFLOW: auto;WIDTH:97%"> <asp:GridView ID="gvPricingDetails" runat="server" AutoGenerateColumns="false" Width="100%" ShowHeader="false" OnRowDeleting="gvPricingDetails_RowDeleting"> <Columns> <asp:CommandField ShowDeleteButton="true" ShowEditButton="false" /> <asp:TemplateField Visible="false"> <ItemTemplate> <asp:Label runat="server" ID="lblId" Text='<%# Bind("UserId") %>' /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="UserMachineName" /> </Columns> </asp:GridView> <table width="100%" style="height:auto"> <tr> <td style="width:50%; text-align:right"> <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="ddlAddPricing" Display="None" ErrorMessage="Select a user from the Drop Down List" ValidationGroup="Pricing" /> <asp:DropDownList ID="ddlAddPricing" runat="server" Width="250px" DataValueField="Id" DataTextField="UserMachineName" /> </td> <td style="width:50%; text-align:left"> <asp:ValidationSummary ID="ValidationSummary11" runat="server" ValidationGroup="Pricing" DisplayMode="List" ShowMessageBox="true" ShowSummary="false" /> <asp:Button ID="btnAddPricing" CausesValidation="true" runat="server" Text="Assign Pricing Role" ValidationGroup="Pricing" OnClick="btnAddPricing_Click" /> </td> </table> </div> </td> </tr> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <br /> </td> </tr> <tr> <td> <asp:Button ID="btnEndAssignRoles" runat="server" Text="Step Complete" OnClick="btnEndAssignRoles_Click" /> </td> </tr> </table> </Template> </igmisc:WebPanel> <igmisc:WebPanel ID="wpReviewContract" runat="server" StyleSetName="" Expanded="false" Enabled="false" Width="100%" Section508Compliant="True" EnableAppStyling="True"> <Header TextAlignment="Center" Text="Review Contract Information" /> <Template> <table width="100%"> <tr> <td align="left"> Review Contract Award <asp:CheckBox runat="server" ID="chkReviewAward" ToolTip="Click after contract award has been reviewed to go to the next step." /> <skm:CheckBoxValidator ID="CheckBoxValidator1" runat="server" ControlToValidate="chkReviewAward" MustBeChecked="true" Display="Dynamic" Text="!" ErrorMessage="You must validate that you have completed this step" ValidationGroup="ReviewAward" /> </td> <td align="right"> <asp:Button runat="server" ID="btnEndReviewContract" Text="Step Complete" onclick="btnEndReviewContract_Click" ValidationGroup="ReviewAward" /> <asp:ValidationSummary ID="ValidationSummary12" runat="server" DisplayMode="BulletList" ValidationGroup="ReviewAward" ShowMessageBox="true" ShowSummary="false" /> </td> </tr> </table> </Template> </igmisc:WebPanel> <igmisc:WebPanel ID="wpClarificationNeeded" runat="server" StyleSetName="" Expanded="false" Enabled="false" Width="100%" Section508Compliant="True" EnableAppStyling="True"> <Header TextAlignment="Center" Text="Contract Clarification" /> <Template> <table width="100%"> <tr> <td style="width:33.3%" align="left"> Contract Clarification Needed? <asp:RadioButtonList runat="server" RepeatDirection="Horizontal" ID="rblClarificationNeeded" ToolTip="Make selection to go to the next step." onClick="Clarification();" > <asp:ListItem Text="Yes" Value="Yes" /> <asp:ListItem Text="No" Value="No" /> </asp:RadioButtonList> <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="rblClarificationNeeded" Display="None" Text="!" ValidationGroup="Clarification" ErrorMessage="You must select if contract clarification is needed." /> </td> <td id="tcClarification" style="width:33.3%;" align="center" valign="middle" runat="server"> <asp:CheckBox runat="server" ID="chkContractClarified" Text="Clarification Received?" ToolTip="Click after contract clarification has been recieved from customer to go to the next step." /> <skm:CheckBoxValidator ID="rfvClarification" runat="server" ControlToValidate="chkContractClarified" MustBeChecked="true" Display="Dynamic" Text="!" ErrorMessage="You must validate that you have completed this step" ValidationGroup="Clarification" Enabled="false" /> </td> <td style="width:33.3%" align="right" valign="middle"> <asp:Button runat="server" ID="btnEndContractClarification" Text="Step Complete" onclick="btnEndContractClarification_Click" ValidationGroup="Clarification" /> <asp:ValidationSummary ID="ValidationSummary13" runat="server" DisplayMode="BulletList" ValidationGroup="Clarification" ShowMessageBox="true" ShowSummary="false" /> </td> </tr> </table> </Template> </igmisc:WebPanel> <igmisc:WebPanel ID="wpObtainApprovals" runat="server" StyleSetName="" Expanded="false" Enabled="false" Width="100%" Section508Compliant="True" EnableAppStyling="True"> <Header TextAlignment="Center" Text="Obtain Approvals" /> <Template> <table width="100%"> <tr> <td align="left"> Obtain Approvals of Contract IAW Delegated Authortiy Matrix <asp:CheckBox runat="server" ID="chkObtainApprovals" ToolTip="Click once the appropriate approvals have been obtained to move to the next step." /> <skm:CheckBoxValidator ID="CheckBoxValidator2" runat="server" ControlToValidate="chkObtainApprovals" MustBeChecked="true" Display="Dynamic" Text="!" ErrorMessage="You must validate that you have completed this step" ValidationGroup="ObtainApprovals" /> </td> <td align="right"> <asp:Button runat="server" ID="btnEndObtainApprovals" Text="Step Complete" onclick="btnEndObtainApprovals_Click" ValidationGroup="ObtainApprovals" /> <asp:ValidationSummary ID="ValidationSummary14" runat="server" DisplayMode="BulletList" ValidationGroup="ObtainApprovals" ShowMessageBox="true" ShowSummary="false" /> </td> </tr> </table> </Template> </igmisc:WebPanel> <igmisc:WebPanel ID="wpSignDocs" runat="server" StyleSetName="" Expanded="false" Enabled="false" Width="100%" Section508Compliant="True" EnableAppStyling="True"> <Header TextAlignment="Center" Text="Sign Documents" /> <Template> <table width="100%"> <tr> <td align="left"> Sign Contractual Documentation <asp:CheckBox runat="server" ID="chkSignedDocs" ToolTip="Check once the contractual documents have been signed to go to the next step." /> <skm:CheckBoxValidator ID="CheckBoxValidator3" runat="server" ControlToValidate="chkSignedDocs" MustBeChecked="true" Display="Dynamic" Text="!" ErrorMessage="You must validate that you have completed this step" ValidationGroup="SignedDocs" /> </td> <td align="right"> <asp:Button runat="server" ID="btnEndSignedDocs" Text="Step Complete" onclick="btnEndSignedDocs_Click" ValidationGroup="SignedDocs" /> <asp:ValidationSummary ID="ValidationSummary15" runat="server" DisplayMode="BulletList" ValidationGroup="SignedDocs" ShowMessageBox="true" ShowSummary="false" /> </td> </tr> </table> </Template> </igmisc:WebPanel> <igmisc:WebPanel ID="wpProvideCopy" runat="server" StyleSetName="" Enabled="false" EnableAppStyling="True" Expanded="false" Width="100%"> <Header TextAlignment="Center" Text="Provide Copy" /> <Template> <table width="100%"> <tr> <td align="left"> Provide Copy of the Signed Contract <asp:CheckBox runat="server" ID="chkProvideCopy" ToolTip="Check once signed copies of the contract have been provided to go to the next step." /> <skm:CheckBoxValidator ID="CheckBoxValidator4" runat="server" ControlToValidate="chkProvideCopy" MustBeChecked="true" Display="Dynamic" Text="!" ErrorMessage="You must validate that you have completed this step" ValidationGroup="ProvideCopy" /> </td> <td align="right"> <asp:Button runat="server" ID="btnEndProvideCopy" Text="Step Complete" ValidationGroup="ProvideCopy" onclick="btnEndProvideCopy_Click" /> <asp:ValidationSummary ID="ValidationSummary16" runat="server" DisplayMode="BulletList" ValidationGroup="ProvideCopy" ShowMessageBox="true" ShowSummary="false" /> </td> </tr> </table> </Template> </igmisc:WebPanel> <igmisc:WebPanel ID="wpInitiateSetupForm" runat="server" StyleSetName="" Expanded="false" Enabled="false" Width="100%" EnableAppStyling="True"> <Header TextAlignment="Center" Text="Initiate Setup Form" /> <Template> <table width="100%"> <tr> <td align="left"> Initiate Project Setup Form <asp:CheckBox runat="server" ID="chkInitiateSetup" ToolTip="Check once the project form has been initiated to go to the next step." /> <skm:CheckBoxValidator ID="CheckBoxValidator5" runat="server" ControlToValidate="chkInitiateSetup" MustBeChecked="true" Display="Dynamic" Text="!" ErrorMessage="You must validate that you have completed this step" ValidationGroup="InitiateSetup" /> </td> <td align="right"> <asp:Button runat="server" ID="btnEndInitiateSetup" Text="Step Complete" ValidationGroup="InitiateSetup" onclick="btnEndInitiateSetup_Click" /> <asp:ValidationSummary ID="ValidationSummary17" runat="server" DisplayMode="BulletList" ValidationGroup="InitiateSetup" ShowMessageBox="true" ShowSummary="false" /> </td> </tr> </table> </Template> </igmisc:WebPanel> <igmisc:WebPanel ID="wpKickoffMeeting" runat="server" StyleSetName="" Expanded="false" Enabled="false" Width="100%" EnableAppStyling="True"> <Header TextAlignment="Center" Text="Conduct Kickoff Meeting" /> <Template> <table width="100%"> <tr> <td style="width:33.3%" align="left"> Kickoff Meeting Required? <asp:RadioButtonList runat="server" ID="rblMeetingRequired" ToolTip="Make selection to go to the next step" RepeatDirection="Horizontal" onClick="Kickoff();" > <asp:ListItem Text="Yes" Value="Yes" /> <asp:ListItem Text="No" Value="No" /> </asp:RadioButtonList> <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="rblMeetingRequired" Display="None" Text="!" ValidationGroup="Kickoff" ErrorMessage="You must select if a kickoff meeting is required." /> </td> <td id="tcKickoff" align="center" valign="middle" runat="server"> <asp:CheckBox runat="server" ID="chkKickoffConducted" Text="Meeting Conducted?" ToolTip="Click once the kickoff meeting has been conducted to go to the next step." /> <skm:CheckBoxValidator ID="rfvKickoff" runat="server" ControlToValidate="chkKickoffConducted" MustBeChecked="true" Display="Dynamic" Text="!" ErrorMessage="You must validate that you have completed this step" ValidationGroup="Kickoff" Enabled="false" /> </td> <td align="right" style="width:33.3%"> <asp:Button runat="server" ID="btnEndKickoffMeeting" Text="Step Complete" ValidationGroup="Kickoff" onclick="btnEndKickoffMeeting_Click" /> <asp:ValidationSummary ID="ValidationSummary18" runat="server" DisplayMode="BulletList" ValidationGroup="Kickoff" ShowMessageBox="true" ShowSummary="false" /> </td> </tr> </table> </Template> </igmisc:WebPanel> <igmisc:WebPanel ID="wpProjectSetupComplete" runat="server" StyleSetName="" Expanded="false" Enabled="false" Width="100%" EnableAppStyling="True"> <Header TextAlignment="Center" Text="Project Setup Complete" /> <Template> <table width="100%"> <tr> <td align="left"> Project Setup Form Completed <asp:CheckBox runat="server" ID="chkSetupComplete" ToolTip="Click once the project setup form has been completed and uploaded to the document library to go to the next step." /> <skm:CheckBoxValidator ID="CheckBoxValidator6" runat="server" ControlToValidate="chkSetupComplete" MustBeChecked="true" Display="Dynamic" Text="!" ErrorMessage="You must validate that you have completed this step" ValidationGroup="SetupComplete" /> </td> <td align="right"> <asp:Button runat="server" ID="btnEndSetupComplete" Text="Step Complete" ValidationGroup="SetupComplete" onclick="btnEndSetupComplete_Click" /> <asp:ValidationSummary ID="ValidationSummary19" runat="server" DisplayMode="BulletList" ValidationGroup="SetupComplete" ShowMessageBox="true" ShowSummary="false" /> </td> </tr> </table> </Template> </igmisc:WebPanel> <igmisc:WebPanel ID="wpCostPoint" runat="server" StyleSetName="" Expanded="false" Enabled="false" Width="100%" EnableAppStyling="True"> <Header TextAlignment="Center" Text="Enter Data Into Costpoint" /> <Template> <table width="100%"> <tr> <td align="left"> Contract and Project Data Entered Into Costpoint <asp:CheckBox runat="server" ID="chkCostpointComplete" ToolTip="Click once all contract and project data has been entered into costpoint to go to the next step" /> <skm:CheckBoxValidator ID="CheckBoxValidator7" runat="server" ControlToValidate="chkCostpointComplete" MustBeChecked="true" Display="Dynamic" Text="!" ErrorMessage="You must validate that you have completed this step" ValidationGroup="Costpoint" /> </td> <td align="right"> <asp:Button runat="server" ID="btnEndCostpoint" Text="Step Complete" ValidationGroup="Costpoint" OnClick="btnEndCostpoint_Click" /> <asp:ValidationSummary ID="ValidationSummary20" runat="server" DisplayMode="BulletList" ValidationGroup="Costpoint" ShowMessageBox="true" ShowSummary="false" /> </td> </tr> </table> </Template> </igmisc:WebPanel> <igmisc:WebPanel ID="wpIssueWAMs" runat="server" StyleSetName="" Enabled="false" Width="100%" EnableAppStyling="True" Expanded="false"> <Header TextAlignment="Center" Text="Issue WAM's" /> <Template> <table width="100%"> <tr> <td align="left"> Issue WAM's <asp:CheckBox runat="server" ID="chkIssueWAM" ToolTip="Click once WAM's have been issued to end the wordlfow process." /> <skm:CheckBoxValidator ID="CheckBoxValidator8" runat="server" ControlToValidate="chkIssueWAM" MustBeChecked="true" Display="Dynamic" Text="!" ErrorMessage="You must validate that you have completed this step" ValidationGroup="WAM" /> </td> <td align="right"> <asp:Button runat="server" ID="btnEndIssueWAM" Text="Step Complete" OnClick="btnEndIssueWAM_Click" ValidationGroup="WAM" /> <asp:ValidationSummary ID="ValidationSummary21" runat="server" DisplayMode="BulletList" ValidationGroup="WAM" ShowMessageBox="true" ShowSummary="false" /> </td> </tr> </table> </Template> </igmisc:WebPanel> </igmisc:WebAsyncRefreshPanel> </td> </tr> </table>
ok, I was able to get around this by rebinding everything after every async postback in this panel. It is a bandaid for now.
please advise if there is a better fix.