Hi i have a table and i want to add dynamic rows to that through C# ... how can i do this.... advance thanks
You can add new rows in html table via javascript
<asp:Button ID="btnTest" runat="server" Text="Check" OnClientClick="javascript:return AddRow();"/>
<script type="text/javascript" >
var mytable = document.getElementById('mytableID');
function AddRow() {
var row = document.createElement('tr');
mytable.appendChild(row);
return false;
}
</script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With