Asp.net learning journey 3

Source: Internet
Author: User

I haven't looked at. Net recently. I 've been reading com... and I 've been reading some controls ............

Page
Ispostback attribute, which indicates whether the page is loaded for the first time or responds to the client sending response.
The validaterequest attribute verifies that the input data is checked. The default attribute is true.
Clientscriptmanager class of clinetscript attributes
Clientscriptmangaer CSM = page. clientscript;
Registerclientscriptblock method: registers client scripts to the page object.
Registerstartupscript method: register the startup script with the Page Object

Callback Technology
To implement callback backendCodeMust inherit icallbackeventhandler

Button: prefix with BTN
Textbox: prefix with txt
Dropdownlist: prefix with DDL

Button: Control
Command and click events. Only one.. command can be used simultaneously. Command has event parameters, and click has no event parameters.
Whether causesvalidateion is verified
Commandargument this parameter is passed to the command event
Cssclass indicates whether the control displays CSS classes on the client
Enabled Enable Web Control
Onclientclick the event to be executed on the client

Textbox: Control
Textmode autopostback: whether to automatically submit when the focus leaves

Fileupload: Control
Filebyte byte [] content and byte array representation of the uploaded file
Filecontent stream: the data stream for uploading files
Filename string name of the uploaded file on the client
Hasfile bool indicates whether a file has been uploaded
Postedfile httppostedfile: obtains the base httppostedfile object of the file.
Attributes of the httppostedfile class
Contentlength int the length of the file to be uploaded
Contenttype string mime content type of the uploaded file
Filename string name of the uploaded file on the client
Inputstream stream points to the stream object of the uploaded file
Literal: Control
Similar to lable

Panel: Control
It is a container control that can store a group of containers. It is often used to store control groups similar to the business logic. It is used to set certain attributes of the panl control when setting attributes of all controls.

Placeholder: Control
Similar to panel controls, it is also a container control, but the control itself does not generate any HTML tag on the client.
The contrlos attribute determines the set of controls. You can add and remove widgets to and from controls.

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.