Asp.net tips

Source: Internet
Author: User

1. After the window pops up, the page layout is deformed unless the page is reloaded:

Use Page. clientscript. registerstartupscript (this. GetType (), "alert", "<SCRIPT> alert ('saved successfully'); </SCRIPT>;

2. When using tables for web page formatting, you may encounter continuous English words or a bunch of exclamation points (!!!) The phenomenon of opening up webpages:

Table {table-layout: fixed;} --- the table can contain !!! (Exclamation point) and other characters are automatically wrapped
TD {word-break: Break-all; Word-wrap: Break-word;} --- some continuous English words in the table wrap automatically

3,CheckboxAlignment with the description text (text is included in the span label)

Add the "vertical-align: middle;" attribute to each tag to be matched, as shown below:
<Span style = "vertical-align: middle;"> upload: </span>
<Input name = "Chk" type = "checkbox" value = "1" style = "vertical-align: middle;"/>

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.