protected void LinkButton1_Click(object sender, EventArgs e)
GridViewRow row = (GridViewRow)(((LinkButton)sender).Parent.Parent);
TxtNoofsiteallot.Text = row.Cells[0].Text;
DDlMangSiteYear.SelectedItem.Value = row.Cells[0].Text;
Button2.Text = "Update";
int _siteID = Convert.ToInt32(((LinkButton)sender).CommandArgument);
In this i want _SiteID to static so that i can use it in a button_Click ;
So i am quiet clutched that should i declare linkButton1_Click as static ,but TxtNoofsiteallot.Text is not supporting