Sir,
I have a model page in my page inside UpdatePanel
On click "btnSave" the data is saving but the page not refresh like fade.
For refreshing page I need to use response.redirect
This practice loss all save variable values,
Please guide how to resolve this issue without redirect.
<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-dialog modal-dialog-centered" role="document">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title" id="ModelTitleId1">Manage Style</h4>
</div>
<div class="modal-body">
<div class="box-body table-responsive">
<div class="row" id="div1" runat="server" visible="true">
<div class="col-xs-12">
<asp:Label ID="lblMessageStyle" runat="server"></asp:Label>
<table class="table table-bordered">
<tr>
<td style="vertical-align: middle">ID
</td>
<td>
<asp:TextBox ID="txtCusOrderDetId" Width="50px" runat="server" CssClass="img img-rounded" ForeColor="#666699" Style="border: 1px solid #000; color: black; background-color:aquamarine" Enabled="false"></asp:TextBox>
</td>
</tr>
<tr>
<td style="width: 200px;">Style #</td>
<td>
<asp:DropDownList ID="cboStyleNo" runat="server" CssClass="chzn-select" Width="200px"></asp:DropDownList>
</td>
</tr>
<tr>
<td style="width: 100px;">Brand/Label</td>
<td>
<asp:DropDownList ID="cboBrandOrLabel" CssClass="chzn-select" runat="server" Width="200px"></asp:DropDownList>
</td>
</tr>
<tr>
<td style="width: 200px;">Color(s)</td>
<td>
<asp:DropDownList ID="cboColors" runat="server" CssClass="dropdownlist chzn-select" Width="200px"></asp:DropDownList>
</td>
</tr>
<tr>
<td style="width: 100px;">Fabric Code</td>
<td>
<asp:DropDownList ID="cboFabric" runat="server" CssClass="dropdownlist chzn-select" Width="300px"></asp:DropDownList>
</td>
</tr>
<tr>
<td style="width: 100px;">Pocket Lining</td>
<td>
<asp:DropDownList ID="cboPocketLining" runat="server" CssClass="dropdownlist chzn-select" Width="300px"></asp:DropDownList>
</td>
</tr>
<tr>
<td style="width: 140px;">Size From - To</td>
<td>
<asp:TextBox ID="txtSizeFromTo" runat="server" Width="100px"></asp:TextBox>
</td>
</tr>
<tr>
<td style="width: 100px;">Consumption</td>
<td>
<asp:TextBox ID="txtConsumption" runat="server" Width="100px"></asp:TextBox>
</td>
</tr>
<tr>
<td style="width: 100px;">UOM</td>
<td>
<asp:DropDownList ID="cboUOM" runat="server" CssClass="chzn-select" Width="100%"></asp:DropDownList>
</td>
</tr>
<tr>
<td style="width: 100px;">Order Qty</td>
<td>
<asp:TextBox ID="txtOrderQty" runat="server" Width="100px" CssClass="floattext" Style="text-align: right;"></asp:TextBox>
</td>
</tr>
<tr>
<td style="width: 70px;">Add %</td>
<td>
<asp:TextBox ID="txtCuttingPercentage" runat="server" Width="100px" CssClass="floattext" Style="text-align: right;"></asp:TextBox>
</td>
</tr>
<tr>
<td style="width: 100px;">Rate</td>
<td>
<asp:TextBox ID="txtRate" runat="server" Width="100px" CssClass="floattext" Style="text-align: right;"></asp:TextBox>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<asp:Button ID="btnSave" Width="100px" runat="server" Text="Save" OnClick="btnAddDetail_Click" CssClass="btn btn-info" />
<button type="button" class="btn btn-info" style="width: 100px;" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>