Reylin Mathew

Reylin Mathew

  • NA
  • 347
  • 76.1k

How to Insert HTML Table Data and asp controls

Jan 7 2019 3:05 AM
<label>Search Account</label>
<asp:TextBox runat="server" CssClass="form-control input-sm" ID="txtSearchAc" AutoCompleteType="Disabled"></asp:TextBox>
 
<label>Cash To</label>
<asp:TextBox runat="server" CssClass="form-control input-sm" ID="txtCashTo" AutoCompleteType="Disabled"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ValidationGroup="Submit" ErrorMessage="Enter Cash To" ControlToValidate="txtCashTo" ForeColor="Red"></asp:RequiredFieldValidator>
 
 
<table id="tblAccount" class="table table-bordered">
<thead>
<tr>
<th>Acc_Code</th>
<th>AccountName</th>
<th>Action</th>
</tr>
</thead>
<tbody></tbody>
</table>
 
<div class="row" id="tblAccountDetails" runat="server">
<div class="col-md-12">
<!-- start: DYNAMIC TABLE PANEL -->
<label class="control-label"></label>
<div class="form-group">
<table class="table table-striped table-bordered table-hover table-full-width" id="tblstr">
<thead>
<tr>
<th class="">No</th>
<th class="">Acc Code</th>
<th class="">Acc Name</th>
<th class="">Sub Acc</th>
<th class="">Amount</th>
<th>Remarks</th>
<th>Select</th>
</tr>
</thead>
</table>
<div align="right">
<label class="btn btn-xs btn-bricky" onclick="deleteChecked('tblstr');" onkeyup="hiddenFunction();"><i class="icon-trash"></i> Delete Item</label>
<input type="hidden" name="Num" id="Num" value="2" />
</div>
</div>
<!-- end: DYNAMIC TABLE PANEL -->
</div>
</div>
 
this is my design.. how to insert to sql using these design code.
thnkx in adv. 
 

Answers (3)