Use A HiddenField To Get The value after postback
HiddenField
Try This
protected void Page_Load(object sender, EventArgs e) { } protected void btnSubmit_Click(object sender, EventArgs e) { string str1 = HiddenFileldVariable.Value; }