C
Chris
Hi,
On a webform do I have a label, a textBox (txtName) and a submit-button (all
asp server controls) :
Upon pressing the button do I write the entered name in the html-output
stream (at server site) :
private void idSubmit_Click(object sender, System.EventArgs e)
{
string str = "Thanks for filling out our survey " + txtName.Text +
"<br>";
Response.Write(str);
}
That works when I execute this in a brower but I see all the controls
displayed as well.
How can I only display the entered name as a reponse ?
thnx
Chris
On a webform do I have a label, a textBox (txtName) and a submit-button (all
asp server controls) :
Upon pressing the button do I write the entered name in the html-output
stream (at server site) :
private void idSubmit_Click(object sender, System.EventArgs e)
{
string str = "Thanks for filling out our survey " + txtName.Text +
"<br>";
Response.Write(str);
}
That works when I execute this in a brower but I see all the controls
displayed as well.
How can I only display the entered name as a reponse ?
thnx
Chris