First time site try to crawl the pit

Source: Internet
Author: User

Record the problems and get to the new knowledge of the website you are doing.

The first is the webpage auto-refresh problem: Under the head tag:

  

The content is the value of the Refresh page, which is 10s.

Then there is the control of the ad on the page, here I use the AdRotator ad control, here the requirements of the configuration

<Advertisements> <Ad> path settings for <imageurl>ad/1.jpg</imageurl>//pictures <navigateurl>http:// www.baidu.com</NavigateUrl>//website Link <AlternateText> Welcome to visit Baidu 1</alternatetext>//Mouse move to the image on the tips < keyword> Baidu </Keyword> <impressions>80</impressions>//picture size </Ad> <Ad> <imageurl& Gt Ad/2.jpg</imageurl> <NavigateUrl>http://www.163.com</NavigateUrl> <AlternateText> Welcome to NetEase 2 </AlternateText> <Keyword> netease </Keyword> <Impressions>80</Impressions> </Ad> &lt ; Ad> <ImageUrl>Ad/3.jpg</ImageUrl> <NavigateUrl>http://www.baidu.com</NavigateUrl> < Alternatetext> Welcome to visit Baidu 2</alternatetext> <Keyword> Baidu </Keyword> <impressions>80</ impressions> </Ad> <Ad> <ImageUrl>Ad/4.jpg</ImageUrl> <navigateurl>http://www.163 .com</navigateurl> <alternatetext> Welcome to NetEase 3</alternatetext> <Keyword> netease </Keyword> <Impressions>80</Impressions> </Ad> </Advertisements>

  

Here are five images configured, then the control, the foreground code is: <asp:adrotator id= "AdRotator1" runat= "Server" advertisementfile= "~/xmlfile1.xml" BackColor = "Black" borderwidth= "1"/> where advertisementfile= "~/xmlfile1.xml" is the address of the XML configuration file, where if you want to configure multiple, the front end does not need to write the absolute path of the picture. Or you'll get an error.

Another thing is that the RadioButtonList control is always on its own, just set the property repeatlayout= "flow is OK."

Password text box is set to invisible: <asp:textbox id= "TextBox2" runat= "Server" textmode= "Password" placeholder= "Please enter 12-15-digit password" style= " Margin-left:9px "width=" 125px "></asp:TextBox>

Textmodel is the password is not visible, then Placeholeer is the hint.

The properties of the table table's display line and TD's display line are: Broder-collapse:collapse, then set line is visible: <td style= "BORDER:1PX; Border-color:black; border-style:solid; "class=" Auto-style1 ">

The last is how to pass the value by clicking button to TD, here is the forward and backward value, the foreground code is "%= global variable", the background definition of global variables can be passed.

Then there is the floating effect of the div. Just add float:left or right in the Div, that means floating around. If you need two div side-by-side, note that you need a div wrap, then the width value must be two div and or greater, and then height must be equal to or greater than.

A label minus the underline, text-decoration:none on the line.

It's almost as much as it touches. Welcome to discuss and qq:511582456

First time site try to crawl the pit

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.