Events timings asp
I have a link button attached to an 开发者_C百科on click event which sets a session variable.
Dependent on this variable i change content on the page.
I define these dynamic controls in the CreateChildControls() method of the asp page.
However my problem is that the CreateChildControls() is getting called before the on click event of the link button, there for the content is changing correctly
Is there a way to make it work the other way around... so on click event fired then create child controls.
Thanks
Override the render method fixes this.
protected override void Render(HtmlTextWriter writer)
{
}
精彩评论