User-886984586 posted
I have three (3) textboxes and I want to combine into one (1) string before I submit it to the database. Easy, I know, but here is my issue, I want some formating before it goes in.
<asp:TextBox ID="txtTextBox1" MaxLength="255" runat="server" /><br />
<asp:TextBox ID="txtTextBox2" MaxLength="255" runat="server" /><br />
<asp:TextBox ID="txtTextBox3" Rows="5" Wrap="true" MaxLength="2000" TextMode="MultiLine" runat="server" />
<asp:Button Id="btnSubmit" text="Submit!" OnClick="btnSubmit_OnClick" runat="server" />
<script runat="server">
Protected Sub btnSubmit_OnClick(ByVal sender As Object, ByVal e As EventArgs)
Dim strValue as String = txtTextBox3.Text
'I need a Return Formating here
strValue = strValue + " Value 1: " + txtTextBox1.Text
'I need another Return Formating here
strValue = strValue + " Value 2: " + txtTextBox2.Text
'Then submit to Oracle DB
Dim strSQL as String = "Insert .....
End Sub
</script>
I need it to look like this before
"txtTextBox3 is the coolest item in the world blah blah blah
Value 1: txtTextBox1 Value
Value 2: txtTextBox2 Value"