The following code example instructs the asp . net page compiler to use visual basic as the server - side code language for the page , and sets the default http mime 下面的代碼示例指示asp . net頁編譯器使用visual basic作為頁的服務器端代碼語言,并將傳輸?shù)娇蛻舳说哪Jhttp mime
Directives . these blocks of server - side code can be declared within a number of asp . net application files , including web pages , user controls , master pages , and global . asax files 這些服務器端代碼塊可以在許多類型的asp . net應用程序文件中聲明,包括網(wǎng)頁、用戶控件、母版頁和global . asax文件。
Finally , if your server - side code is service oriented and not tailored solely to handling requests from an ajax client , xml is a better choice because of its ubiquitous support 最后,如果服務器端代碼是面向服務的,沒有單獨針對處理ajax客戶請求調整過,那么由于對xml一致的支持, xml會是更好的選擇。
Although not demonstrated in this article , it is also very easy to create server - side code such as servlets and ejb components in netrexx , because it compiles to standard java class files 雖然在本文中并沒有演示,但是還能夠非常容易地用netrexx創(chuàng)建服務器端代碼(例如servlet和ejb組件) ,因為它能編譯成標準的java類文件。
Remember , your server - side code should care if it s being called by ajax , a jsp , a regular html form , or any other type of code ; it only has the traditional web - specific methods of reporting information 要知道,服務器端代碼應該明白它是由ajax 、 jsp 、普通html表單或其他類型的代碼調用的,但只能使用傳統(tǒng)的web專用方法報告信息。
Tag for the purpose of code reuse by placing common server - side code , controls , or html markup within a file to include in other web pages , often the preferred approach in asp . net is to use web user controls 標記(通過將公共服務器端代碼、控件或html標記放入要包括在其他網(wǎng)頁中的文件內(nèi))以實現(xiàn)代碼重用, asp . net常用的首選方法是使用web用戶控件。
However , in parallel with the maintenance effort , alcrohm plans to implement a new version of the application that will be accessible via a standard web browser , coupled with java server - side code and business logic 但是,與維護工作相比, alcrohm計劃實現(xiàn)一個新的應用軟件版本,這個版本能夠通過標準網(wǎng)絡瀏覽器訪問,加上java語言的服務器端代碼以及業(yè)務邏輯。
Include files can be used to contain anything from static text such as a common page header or a company address to common server - side code , controls , or blocks of html markup that a developer wants to insert within other pages 從靜態(tài)文本(如公共頁標題或公司地址)到公共服務器端代碼、控件或開發(fā)人員要插入到其他頁中的html標記塊,包含文件可用于包含任何內(nèi)容。
By its very nature , dwr creates a tight coupling between client - side and server - side code , with a number of implications . first , changes to the api of remoted methods need to be reflected in the javascript that calls on the dwr stubs 從實質上看, dwr在客戶端和服務器端代碼間形成了緊密的耦合,這有許多含義:首先,遠程方法api的變化需要在dwr存根調用的javascript上反映出來。