how can display please wait message on the button
2007-10-18 16:12
447 查看
This can easily be achieved by using the ClientScript.GetPostBackEventReference method.
this.Btn_Upload.Attributes.Add("onclick", "this.value='Please wait..'; this.disabled=true;" +
ClientScript.GetPostBackEventReference(this.Btn_Upload,""));
The GetPostBackEventReference injects the __doPostBack method and
also the hidden fields that hold the event target and event arguments.
This is a useful technique when
uploading large files and during the process disabling the button control.
this.Btn_Upload.Attributes.Add("onclick", "this.value='Please wait..'; this.disabled=true;" +
ClientScript.GetPostBackEventReference(this.Btn_Upload,""));
The GetPostBackEventReference injects the __doPostBack method and
also the hidden fields that hold the event target and event arguments.
This is a useful technique when
uploading large files and during the process disabling the button control.
相关文章推荐
- How can I display the chevron button for toolbar?
- SOS: Autodesk MapGuide Studio - Preview can not display "Feature Label" with Chinese text on the platform of MapGuide Open Source
- How to display the data from database on JTable
- UIBarButtomItem:The set of possible titles to display on the bar button.
- How to dynamically display the tips or help on the text box
- How to fix the “msvcrt-ruby18.dll is missing from your computer” error message in Ruby on Rails
- How can I disable the User Account Control (UAC) feature on my Windows Vista computer?
- How You Can Cash In On The Green Gold Rush of 2014
- How can I perform messagetrackinglog on indicated mailstore?
- How to Control the [Add document] button on the bottom of every view?
- How can I display the chevron for toolbar and open dropdowned popup menu with invisible buttons?
- vector iterator not incrementable For information on how your program can cause an an assertion Failure, see the Visual c + + documentation on asserts
- How can I edit the welcome message when ssh start?
- how can i change the back color on mouse out to the color specified in gridview
- How can I get an object's absolute position on the page in Javascript?
- How to get the data from a cell when I click on the GridButtonColumn of the same row
- How do I set the DISPLAY variable on Linux
- How can I install the Google Apps Package (Play Store, ...) on my Android device?
- How can I let the compiled script depend on something dynamic
- How to Determine the Blocking Session for Event: 'cursor: pin S wait on X' (文档 ID 786507.1)