I have a string in my main body that takes from an array. I want to pass that to the click event on a linkbutton. Is there any way to do this? Any help much appreciated. Example code below:
(main body)
string myLabelsName = column.ToString();
LinkButton myButton = new LinkButton();
myButton.Text = ("THIS IS MY BUTTON");
myButton.Click += new System.EventHandler(myButton_Click);
(event)
protected void myButton_Click(object sender, EventArgs e)
{
I WANT THE STRING 'myLabelsName' Here <<
Response.Redirect(myLabelsName + ".aspx");
}