The namespace of clientscript is system. Web. UI. Page. Only page after instantiation can be used with clientscript. The user-defined space does not inherit from the page, so the clientscript class cannot be used directly. To use this class, you need to find the method to call the Page Object. Specific practice: after this. Parent. Page finds this object, you can freely call the classes and methods in the namespace of system. Web. UI. Page, just like on a common page. Reference: Why can't the user control page be found. clientscript. registerclientscriptblock reason http://blog.csdn.net/sendling/archive/2008/07/11/2637287.aspxthis article comes from the tornnet http://www.ljf.cn /;
The namespace of clientscript is system. Web. UI. Page. Only page after instantiation can be used with clientscript.
The user-defined space does not inherit from the page, so the clientscript class cannot be used directly.
To use this class, you need to find the method to call the Page Object.
Specific Practices:
this.Parent.Page
After finding this object, you can freely call the classes and methods in the namespace of system. Web. UI. Page, just like on a common page.
Refer:
Why the user control page cannot find. clientscript. registerclientscriptblock cause http://blog.csdn.net/sendling/archive/2008/07/11/2637287.aspx
This article comes from tornado Information Network http://www.ljf.cn /;
Address: http://www.ljf.cn/2009/9/Item231232.html