HappyGoLucky
October 3rd, 2003, 11:50 AM
On my website, I have people fill out a comment in a multi line text box control. When they are finished, they press a submit button.
How do I save the data(Comment) once it is entered and someone presses the save button. Is it better to save the data to the web server hard drive, or to have the comment emailed to the web master email address?
Here is a small program I am working on in ASP.NET and C#. Here I allow for entering of one line in a text box. Now I just don't know the best method of saving the data. Note in this example I am just working with one line of input.
<%@ Page Language="C#"%>
<script Runat="Server">
void Page_Load( object s, EventArgs e ) {
if (! IsPostBack ) {
txtComment.Text = "No comment";
}
}
</Script>
<html>
<head><title>TextBoxText.aspx</title></head>
<body>
<form Runat="Server">
Please enter the name of your country:
<br>
<asp:TextBox
id="txtComent"
Runat="Server"/>
<asp:Button
Text="Submit!"
Runat="Server"/>
</form>
</body>
</html>
How do I save the data(Comment) once it is entered and someone presses the save button. Is it better to save the data to the web server hard drive, or to have the comment emailed to the web master email address?
Here is a small program I am working on in ASP.NET and C#. Here I allow for entering of one line in a text box. Now I just don't know the best method of saving the data. Note in this example I am just working with one line of input.
<%@ Page Language="C#"%>
<script Runat="Server">
void Page_Load( object s, EventArgs e ) {
if (! IsPostBack ) {
txtComment.Text = "No comment";
}
}
</Script>
<html>
<head><title>TextBoxText.aspx</title></head>
<body>
<form Runat="Server">
Please enter the name of your country:
<br>
<asp:TextBox
id="txtComent"
Runat="Server"/>
<asp:Button
Text="Submit!"
Runat="Server"/>
</form>
</body>
</html>