[Repost] ASP + grammar tutorial (3) ASP + server-side programming initial

xiaoxiao2021-03-06  18

This chapter describes the control of the ASP server side.

In addition to using <%%>, ASP program developers can currently use new tags to generate dynamic pages, new server control can use a special Tag Runat = Server to declare in ASP files.

The following examples use the following server controls

, , , and during operation They will automatically generate HTML code

name:

Category:

Psychology

Business

popular_comp

This example is running

http://tutorial.superexpert.com/quickstart/aspplus/samples/webforms/intro/intro4.aspx

Note: These server controls generate HTML code in the client, but the content of these server controls is not saved in Hidden, but the facts are saved between the page, and there is no Script code in the client.

In addition to these input server controls, ASP allows developers to enrich some of the planted controls. For example, in the following example, we will see the control is a dynamic generated ad image.

name:

Category:

Psychology

Business

popular_comp

The content of the advertising document is:

/quickstart/aspplus/Images/banner1.gif

http://www.microsoft.com

Alt Text

computers

80

/quickstart/aspplus/images/banner2.gif

http://www.microsoft.com

Alt Text

computers

80

/quickstart/aspplus/images/banner3.gif

http://www.microsoft.com

Alt Text

computers

80

This example is running:

http://tutorial.supeRexpert.com/quickstart/aspplus/samples/webforms/intro/intro5.aspx

The above is some simple descriptions of the server control of the ASP file. In the following, we will explain some advanced ASP server controls, please ask us to support us!

转载请注明原文地址:https://www.9cbs.com/read-41922.html

New Post(0)