ASP. net.3.5.sp1 advanced programming (version 6th) Notes (Chapter 1 and Chapter 2)

Source: Internet
Author: User
Chinese version of ASP. net.3.5.sp1 advanced programming (6th). Tsinghua University Press
Notes:
Chapter One Asp.net several methods of transferring values between pages http://wenku.baidu.com/view/1132f863f5335a8102d22026.html1:QueryString is simple, insecure, data volume is not big, response, resquest2: Session, application server, Cookie client data volume is not big. 3: Add <% @ reference page = "~ /Jump to the start page. aspx "%> and then you can directly reference the large data volume in the background of the target page and transmit object data. Note that the public string name {return this. textbox1.text} various folders \ app_code in Asp.net under this folder, you can write both VB and C # Programs \ app_data. in this folder, they can be stored in data-related things \ app_themes topic (skin) folder \ app_globalresources is used to store global string tables (**. resx ). The main purpose is to change the site's display font in Chinese and English. \ App_localresources is the same as above. The difference is that local controls a single page, for example, default. aspx. resx default. aspx. en-gb.resx \ app_webreferences add reference \ app_browsers is used to identify the browser of the client, and modifications are stored in c: \ windows \ Microsoft. the default settings of the corresponding browser in the net \ framework \ v2.0.50727 \ config \ browsers folder. Compile Asp.net to compile the file into a DLL for the first time, and then instantiate the DLL directly. Therefore, if the background code changes during encoding, you must re-compile it. In-situ pre-Compilation: C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_complier.exe
Chapter 2 <input type = "text" id = "text1" value = "zhangyongbin"/> HTML Server Control <title> </title> HTML Tag [htmlcontainercontrol] can be converted web Server Control, you only need to add runat = "server". After adding runat, you can directly access these controls in the background. For example, in the background code, you can write title1.value = "test "; <meta> <p> <span> [htmlgenericcontrol] javascript can be called on the background code. See the callback function usecallback on page 1. Explanation: After the front-end clicks button3, it calls the Javascript callbacktest () method, and then calls the usecallback (ARG) method, passing Arg as a parameter to the backend page_load is equivalent to registering the usecallback method (page. clientscript. registerclientscriptblock method) and inherits system. web. UI. icallbackeventhandler interface. raisecallbackevent is the frontend call method, and getcallbackresult is the method returned by the backend. Final returned result: true code: Foreground: 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.