Click here to Skip to main content
15,886,083 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
ScriptManager.RegisterStartupSCript use in class library. It give System.web.ui not supported error
Posted
Updated 22-Oct-11 18:28pm
v2
Comments
Reiss 20-Oct-11 6:18am    
What is your question?
Anuja Pawar Indore 20-Oct-11 6:23am    
Be more specific, what are you trying to ask

You need to phrase your question better; I'm not exactly sure what you mean.

However, read Managing Your JavaScript Library in ASP.NET and you should find out everything you need in order to successfully store JavaScript in a class library and register it on a page using, among other functions, RegisterStartupScript.
 
Share this answer
 
Your class should be inherited from Page class to access ScriptManager and RegisterStartupSCript , otherwise its very clear that you will get this error.
 
Share this answer
 
Comments
Vikas_Shukla_89 23-Oct-11 2:02am    
my +5
Amir Mahfoozi 23-Oct-11 2:20am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900