View Full Version : Resolved pass without reloading

05-26-2011, 07:43 PM
So I am still sorta new to the C# aspect of asp.net...
on page load i have the following

label w/ id lbl_Name
textbox w/ id txt_fName
textbox w/ id txt_disp

and a button

protected void Page_Load(object sender, EventArgs e){
txt_fName.Text="First Name";

protected void Button1_Click(object sender, EventArgs e){
string fName= this.txt_fName.Text;
this.txt_disp.Text= fName;

now when i click the button (after entering some name in like "bob")
it does not display "bob" it displays "First Name"

I know this is basic, but as i said i am newer to this and trying to get a handle on it

Edit Notes: I still do not know why this is happening, but it was a work around until I had my database set up to pass info to. I don't really need this answered, but if you stumble across it and know the answer I would appreciate a PM explanation.