So, I know how to do some of the required code for a "CustomScriptManager", like I postedhere. But there are still some issues that I'm trying to solve, like:
Need to be able to have a corresponding javascript behavior which is automatically referenced on the page (matches the ExtenderControlBase scenario). I assume this has something to do with the EnsureScripts internal method and the various helper methods included in the ScriptReferenceHelper class. I attempted to copy the ScriptReferenceHelper code, but it just wouldn't build.
I also need to be able to use the [RequiredScript] property, again this probably has something to do with the EnsureScripts() mentioned above.
I don't want to use the ExtenderControlBase, because I'm not "extending" anything. I did try it, and just have no properties, but I lose the ability to generate the <customScriptManager id="cManager1" /> in the xml-script.
Any suggestions?
If you would like to write a custom ScriptManager,try to take a look at this reading about asp:ScriptManager to get some ideas.http://ajax.asp.net/docs/mref/3b24af40-d9f2-7ddd-cb8e-38a9bb90b9c6.aspx
I don't think it is necessary to write a custom ScriptManager if you have installed Ajax framework in your PC.asp:ScriptManager is suitable to most of your development work based on Ajax framework.
Wish this can help you.
No comments:
Post a Comment