Desperate

rail_ibn

New Member
Can someone tell me how I can get text from a multiline textbox into my database. I keep getting this error when attempting to render the page:<BR>'value' is not a member of 'System.Web.UI.WebControls.TextBox'.<BR><BR>Here is the script for the control:<BR><asp:TextBox ID="Comment" Runat="server" TextMode="MultiLine" Columns="10" Rows="5" Width="533px"></asp:TextBox></td><BR><BR>Here is the line in the sql that the error is referencing:<BR>MyCommand.Parameters.Add(New SqlParameter("@Comment", SqlDbType.varchar, 255))<BR>MyCommand.Parameters("@Comment").Value = http://aspmessageboard.com/archive/index.php/Server.HtmlEncode(comment.value)<BR><BR>It apparently doesn't like the fact that I'm attempting to extract data from the 'value' attribute. Problem is that the 'value' attribute does not exist. So what do I use?<BR><BR>Any help on this would be greatly appreciated. I can't beleive how difficult it has been to work in .net. Just trying to accomplish the simplest things are hours of work.<BR><BR>Thanks to all!<BR><BR>Sincerely,<BR>Tim<BR>The compiler is always right.<BR><BR>The textbox control doesnt have a value property like the HtmlInputText control. Being the arse that I am Im going to make you look this one up in the .net framework. If your going to survive in .net your going need to get used to using the sdk..text, I believe.
 
Back
Top