How to save data to database from table created at runtime

Posted by Vinoditathakur under VB.NET on 2/16/2013 | Points: 10 | Views : 1215 | Status : [Member] | Replies : 0
How can i save the data from a table created at runtime to database ( code in vb.net , backend oracle)

.aspx page

<div id="mydiv" runat="server">
<style type="text/css" media="all">


table.second
{
margin: 0;
padding: 0;
position: relative;
top: 5px;
left: 70px;


}
</style>


.aspx.vb page
Protected Function doPageLoad(ByVal sender As Object, _
ByVal e As System.EventArgs _
) As IMaCSRetVal

If Page.IsPostBack = False Then
BindGridview()
For dp As Integer = 1 To 10
ddlst_Scale_pointers.Items.Add(dp)
Next
End If



Protected Sub ddlst_Scale_pointers_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlst_Scale_pointers.SelectedIndexChanged
Dim sb As New StringBuilder()
sb.Append("<table width='400' class='second' border='1px'>")
sb.Append("<tr>")
sb.Append("<td>Pointer No</td>")
sb.Append("<td>Pointer Label</td>")
sb.Append("<td>Pointer Color</td>")
sb.Append("</tr>")
For i As Integer = 1 To ddlst_Scale_pointers.SelectedItem.Value
sb.Append("<tr>")
sb.Append("<td>" & i & "</td>")
sb.Append("<td><input id='txtlbl" & i & "' type='text' /></td>")
sb.Append("<td><input id='txtcolour" & i & "' class='color' type='text' /></td>")

sb.Append("</tr> ")
Next
sb.Append("</table>")
sb.Append("</center>")
mydiv.InnerHtml = sb.ToString()

End Sub.




Responses

(No response found.)

Login to post response