sql server - How values from TextArea can be saved in database from asp.net -
i can pass values textbox database way,
cmd.parameters.addwithvalue("@name", textbox3.text.tostring()); but not able pass values textarea database way,
cmd.parameters.addwithvalue("@address", textarea1.text.tostring()); the text area defined so:
<textarea id="textarea1" cols="20" name="s1" rows="2"></textarea> how can it?
you need create server element in order able access in c# code:
<asp:textbox runat="server" id="textarea1" textmode="multiline" columns="20" name="s1" rows="2"></asp:textbox> asp.net sql-server
No comments:
Post a Comment