How to hide controls using browser scripts.
If the requirement says that particular button control should be disabled while doing a query or any other event like save,delete etc
write the following script on pre invoke event where Method name = Query/Save/Delete
var controlVar = this.FindControl("Control Name");
controlVar.SetProperty("Visible", "false");
Or if the requirement says the control should be enabled at particular event.
Write the following script on pre invoke event for method = Execute Query
var controlVar = this.FindControl("ControlName");
controlVar.SetProperty("Visible", "true");
http://www.siebeldigest.com/
Saturday, October 17, 2009
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment