gridview - how to disable a button outside my update panel? -
i have dotnet 2.0 web application.
and there button outside update panel...
inside update panel..i have gridview ...while sorting grid, need disable button outside update panel.
please me.
<table> <tr> <td> <updatepanel> <gridview /> </updatepanel> </td> </tr> <tr> <td> <button /> </td> </tr> <table>
edit:
i tried below code on server side sorting function - not working
scriptmanager.registerstartupscript(this.page, this.gettype(), "", "<script>document.getelementbyid('" + ((button)dualgridtablerow.findcontrol(string.concat(webconstants.prioritytext, webconstants.uptext))).clientid + "').style.enabled ='false';</script>" , true);
you can add disable functionality in onclick event of sort buttons(links). don't know if elegant, work. 1 point, if need disabling button while async sort think unnecessary.
Comments
Post a Comment