I have a webpart. This webpart is having WebImageButton and UltraWebGrid controls. This button and grid controls were added to the WebAsyncRefreshPanel object.The button click event is registered using ClickHandler event handler. I am assigning Datasource in the clickeventhandler method. But,When I click the button it is doing full postback to load the grid.
There is anyway I can load the grid without doing full post back.Please respond ASAP.
Thanks,Cimetrix Team
A full postback from the WARP panel is usually an indication that something went wrong. Use an HTTP trace tool like WebDevelopment Helper or Fiddler to trace the HTTP request/response. I'm guessing the response for the WARP panel is initially a 500 indicating a server error. There should be a stack trace or something in that response which will help you identify the problem.
-tony
I removed the following method from my webpart class. Now, even though the button is still part of WARP, it is not firing any events. I set AUTOSUBMIT = false, and have seen the behaviour. Whether I set AUTOSUBMIT to either true or false, the behaviour is same. The events are not fired.
protected override void RenderContents(HtmlTextWriter writer)
{
...
}