开发者

Re-Enable button after submit

I'm employing a solution similar to the answer of OnclientClick and OnClick is not working at the sa开发者_开发知识库me time ?

How this currently works is that a file is generated and returned to the client, however after the file is returned the button should become active again. so the response contains the file. But the button does not reactivate.

I'm not certain if this can be done. Any thoughts? Thanks


You could set the Id mode of the button to static. Then choose a unique Id for the button. Whenever you have verified that the file is successfully transmitted you can call (jquery):

$("#idOfSubmitButton").attr("disabled", false);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜