...

View Full Version : Resolved pass without reloading



alykins
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

asp:
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){
lbl_Name.Text="Name:";
txt_fName.Text="First Name";
txt_disp.Text="";
}

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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum