**************************************** ****************************
*Copyright Notice
*
* This document uses the Creative Commons release. Please strictly abide by this authorization protocol.
* This article was first published onBlog, This statement isArticleIs an indispensable part.
* Author's network name: prodigal son
* Author email: Dayichen (AT) 163.com
* Author's blog: Http: // www. cnblogs. com/walkingboy
*
**************************************** ****************************
[The first wave of Open Source] smartscript
-Written by prodigal son @ cnblogs.com (07-11-30)
Abstract:
It has been nearly a year since [smartscript] JS class library management was released. Many ideas about combining Js in Asp.net programming have not been done, and smartscript has been in the previous state, now put it in codeplex:SmartscriptHope that friends with time and interest can expand their ideas.
List to be extended:
1. Expand the automatic component dependency of JS
2. Extended as an associated file of webform. You need to modify the extension of vs. The subsequent file display form
-- Website:
-Webform1.aspx
-Webform1.aspx. CS
-- Webapplication:
-Webform1.aspx
-Webform1.aspx. deginer
-Webform1.aspx. CS
-- Smartscriptwebform
-Webform1.aspx
-Webform1.aspx. deginer
-Webform1.aspx. CS
-Webform1.aspx. js
The configuration in aspx is similar.
<% @ Page Language = "C #" autoeventwireup = "true" codebehind = "webform1.aspx. CS "inherits =" kinnsoft. SRP. portal. views. webform1 "javascript =" webform1.aspx. JS "%>
Then, we use the smartscript idea to output JS data. At this time, we can have more control permissions, such as syntax compression, Gzip compression, and cache settings (determine the file modification time, whether to update the client cache, that is, modify the reference address), JS obfuscation encryption, etc.
3. Integrate scriptsharp or self-writing similar components to implement JS writing using C #
......
Because we maintain many existing company frameworks at the same time, and there are a lot of new framework research tasks, there is no time to implement some ideas, and these ideas and poor prototypesCodeNow, I want to play a leading role ^ _ ^. The next step may be to open-source callbackplus: [callbackplus] to stay away from the nightmare solution that updatepanel gave me and check whether the time permits, because the code I use will be ugly, and I am afraid of losing it and being despised.
Some features of callbackplus:
* Bidirectional serialization
* Container update mechanism similar to Asp.net Ajax's updatepanel/CA callback (JS in Ajax that is dynamically executed and returned to innerhtml)
* Two-way data binding is similar to some uimapping in the garden.
This framework also includes a set of custom webcontrols and a complete set of client script models.
It is currently used in a large project (with a concurrency of more than 100). It runs well and has a good speed :)