Reylin Mathew

Reylin Mathew

  • NA
  • 347
  • 75.5k

Rereieve data fro sql using ajax.

Jan 2 2019 11:27 AM
<div class="col-sm-2">
<div class="form-group">
<br />
<asp:Button data-toggle="modal" data-target="#myModal" class="btn btn-primary btn-lg" ID="btnSearch" runat="server" Text="Search" CssClass="btn btn-square btn-success" OnClick="btnSearch_Click" ValidationGroup="Search"/>
<div id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" class="modal fade" data-keyboard="false" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" data-dismiss="modal" aria-label="Close" class="close">
<span aria-hidden="true">×</span>
</button>
<h4 id="myModalLabel" class="modal-title">Select Account</h4>
</div>
<div class="modal-body">
<asp:GridView ID="gdvAccount" runat="server" AutoGenerateColumns="False" EmptyDataText="No Data Found."
CssClass="table table-striped table-bordered table-hover table-responsive" DataKeyNames="Id" ShowFooter="True">
<Columns>
<asp:TemplateField HeaderText="Sl No">
<ItemTemplate>
<%# Container.DataItemIndex +1 %>
</ItemTemplate>
<HeaderStyle Width="50px" />
<ItemStyle Horizontal />
</asp:TemplateField>
<asp:BoundField DataField="Code" HeaderText="Acc Code" />
<asp:BoundField DataField="Name" HeaderText="Acc Name" />
<asp:BoundField DataField="Status" HeaderText="Status" />
<asp:TemplateField>
<ItemTemplate>
<asp:Button ID="btnAdd" runat="server" CssClass="btn btn-square btn-warning btn-xs" Text="ADD" OnClick="btnAdd_Click" target="_blank" />
</ItemTemplate>
<ItemStyle Width="50px" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
<div class="modal-footer">
<asp:Button type="button" class="btn btn-primary">Save changes</asp:Button>
</div>
</div>
</div>
</div>
 
 
this is my design code. i need click on btnsearch using popup box.popup box is working. but i want values display on  popup box using ajax code. after  that values bind and select 
values that value display on next grid.but popup box value select using at a time single data.if again that select but not enter into the second grid...
plz help me. thnkx in adv. 

Answers (2)