A
Angel
I have created a CustomUserControl.
The user control has few LinkButtons in it.
I want to do something within LinkButtonClick event and then update page.
The problem is that when this event is fired the PageLoad has happened and
it is too late for changing interface.
I want to force render page again when I am finished with event.
Following code works fine, but within component I do not know which is the
current page so I cannot redirect it to it.
private void btnLinkButton_Click(object sender, System.EventArgs e)
{
if (sender != null)
{
//Update current selection singleton
UpadateState(((sender as LinkButton).TabIndex);
//this changes appearance current link button
MarkAsSelected((sender as LinkButton))
// code here to force page redraw in browser
Response.Redirect("Default.aspx");
}
}
Is there some other way to achieve Page Update after "LinkButtonclick event"
Thanks
The user control has few LinkButtons in it.
I want to do something within LinkButtonClick event and then update page.
The problem is that when this event is fired the PageLoad has happened and
it is too late for changing interface.
I want to force render page again when I am finished with event.
Following code works fine, but within component I do not know which is the
current page so I cannot redirect it to it.
private void btnLinkButton_Click(object sender, System.EventArgs e)
{
if (sender != null)
{
//Update current selection singleton
UpadateState(((sender as LinkButton).TabIndex);
//this changes appearance current link button
MarkAsSelected((sender as LinkButton))
// code here to force page redraw in browser
Response.Redirect("Default.aspx");
}
}
Is there some other way to achieve Page Update after "LinkButtonclick event"
Thanks