Help! Why Can't Access the value of Server Control ?

Sep 22, 2009 at 9:15 AM

protected void FileNameDetermining(object sender, FileNameDeterminingEventArgs args)



//Question:Why Can't Access the value of  this.labelHideUploadOwner.Text ?

string stringOwner = this.labelHideUploadOwner.Text;

this.SaveUpload(stringOwner, stringName, stringPath);


Sep 30, 2009 at 4:08 PM

If you want to get the value of another control you have to set RequestAsPostBack to true. You will also pay performance penalty I hope you understand.