Dynamic Table To Edit Sql Database Data (editable Table)
I have a Table that is generated using a SQL Database And put into a asp:Repeater to display the data. The table displays fine, with all relevant data. All is happy! But The inform
Solution 1:
The reason why you're getting the "not well formed" error is that you're using double quotes around the eval statement and inside them as well. Simply use single quotes as the surrounding quotes.
<td><asp:TextBoxID="companyName"runat="server"AutoPostBack="true"Text='<%# Eval("_companyName") %>'
></asp:TextBox></td>
This however will not solve your overall problem of trying to edit multiple items through a repeater. If the text in any of these boxes is modified, how will you know which row this pertains to?
Have fun with what you're trying, but I suspect you will find yourself becoming interested in DataTable and GridView.
Post a Comment for "Dynamic Table To Edit Sql Database Data (editable Table)"