Asp. NET controls include Web server controls, Web user controls, Web custom controls, HTML server controls, and HTML controls. The differences between HTML
();
// Parent class method name
MethodInfo mi = pageType. GetMethod ("Loading ");
// Parameters
Mi. Invoke (uc, new object [] {"parameter 1", "parameter 2 "});
Supplement:1. If you want to obtain the return value of the method, the return value of the Invoke method is the return value of the method execution. The type is object. You can just convert it!2. I still wrote a value transfer on the title, but not in the code? Oh, can we get the value in a way that we can? In addition, there are many
First of all, let's talk about the difference between the two concepts (I believe we all know)
1. An ASP control is a server-side control, and HTML is a client control.
2. When the ASP control resolves at the server side, it translates into an HTML control that enables the client browser to be displayed. That means the final product is HTML control.
3. asp
Asp. NET controls and asp.net controlsI. web controls 1. text box controls
TextBox Control
Function Description: displays text and receives user input text.Name prefix: TxtASPX code:
Important attribute: Text displayed on the button
TextMode: sets the text mode. "Single" is a Single-line text box, and "Multiline" is a
ASP. NET protects custom server controls and asp.net controls
Custom server controls are a way to extend the functions of ASP. NET Web server controls. The following provides basic security guidelines for users and developers of c
consume server resources, but is saved stateless!
To obtain the value of an HTML control, you need to use the FORM method of the REQUEST. The WEB control can be processed directly through attributes!
Therefore, in general, HTML can be used for dynamic processing of controls without the need to save the control status and without any value processing, or you can save the status of the WEB server control! WEB server
processing. The two important attributes of the panel control are enabledropdown and enableclientscript. The former determines whether to display the additional title bar, and the latter determines whether to generate a Javascript script to expand/collapse on the client, or use the image button to process server click events. If you click an event to submit it to the server for processing, you can use the Custom Event class to save the Panel status, and the Click Event of the image button trigg
Seven controls related to user management in ASP. NET controls:1. Login control: Implement User Login input as user name and password)2. LoginView control: implements different views for anonymous users and logged-on users. You can design different combinations of controls that users can see in the two states.3. Passwo
In the original study, From VB to ASP. We are exposed to a lot of controls, these controls for our program development provides a lot of convenience, in the program development, many functions or code need to be repeated use, we in the beef brisket when we learned the template method and repeated code to add Toolbox call method, improve efficiency. Master pages a
In Asp.net, controls are mainly divided into HTML controls and server controls. Which type of controls are used on the page? With the deep learning and development experience, students will gradually become proficient, currently, server controls are frequently used in learni
This article mainly introduces the ASP control and HTML control conceptual differences, not clear friends can refer to the
First of all, let's talk about the difference between the two concepts (I believe we all know)
1. An ASP control is a server-side control, and HTML is a client control.
2. When the ASP control resolves at the server side, it translates int
How does one modify ASP. NET Server controls in ASP. NET control development? The following describes how to modify the ID and Name of a server control:
The generated ID and Name can be removed through several methods.
ASP. NET control development-Methods for modifying the ID and Name of an
It is well known in ASP. If a page has a user control (or master page) added to it, the controls within the user control The ClientID will be automatically added to the ClientID of the user control in the pageThe control within the control in the page clientid= the user control ID number + "_" + the ID number of the user control's internal controlsIt's too much to say, just take a look at the example.A he
This article from: http://tech.ddvip.com/2007-05/117993461125583.html
Source code used by the instance: http://file.ddvip.com/2007_05/1179934567_ddvip_5087.rar
Summary
This article describes how to create a simple custom Server Control. With this content, you will understand the basic methods for creating and testing custom server controls using Visual Studio 2005.
Note: This article is based on ASP. NET 2.
files in custom controls, which is especially useful when custom controls use a large number of styles or scripts. Finally, it explains how to use the control on the page after development.
ASP. NET Custom Controls
Preface
Simple star control on the first day
Star co
stations, information stations, small companies everywhere, plus the studio, countless, and they can do more to make more money, most of them are to their employees with the fastest speed to work out can, as long as the function to achieve, no matter how you do. Such a site is really not suitable for SEO, because the server control with more, ASP. NET in the server control to HTML tags will be more than a lot of input type= "hidden" label, that is, H
used to fully support Visual Studio. NET design (including "property" window and "design" view Preview), this will make Web user controls more inconvenient to use. In addition, the only way to share a user control between applications is to put a separate copy into each application. Therefore, if the control is changed, more maintenance is required.
Web custom controls are compiled code, which makes Web cu
class is also implemented. In the rendering method, data items are input using the RepeatInfo class according to the definition format. In the next task, we will start a slightly complex combined data binding control that looks similar to the GridView to display a list of star scores.
ASP. NET Custom Controls
Preface
Simple star control on the first day
Star controls
. loadcontrolstate (O [0]); _ score = convert. toint32 (O [1]);}
5. after completing the subsequent steps, create An ASPX page declaration on the web site and define the statestar control. Disable the view and add a server button that causes sending back, set the score in the page loading event as in the first step. preview the page again and click the button. The score is displayed correctly:
4. Summary
In this task, we used the control status to save the score of the custom control, so t
saved to viewstate, so that the page can be saved during the process of uploading the page from the client back to the server or downloading it from the server to the client.4) different event processing models: HTML tagging and HTML Server Control event processing are on the client page, while Asp.net server controls are on the server.For example:It is an HTML server control. At this time, we click this button and the page will not be uploaded back
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.