Asp. NET Technology FAQ and code

Source: Internet
Author: User
Asp.net| Solutions | questions How do I achieve the effect of a textbox display as an underscore?
Workaround:
You can use CSS style sheets to control:
< style type= "Text/css" >
. myline {border-right: #000000 0px solid; Border-top: #000000 0px solid; Border-left: #000000 0px solid; Border-bottom: #000000 1px solid}
</style>
< Asp:textbox id= "TextBox1" runat= "Server" cssclass= "Myline" ></asp:textbox>
  
   How to use ImageButton to move the mouse and remove the effect of changing the picture
Workaround:
< Asp:imagebutton id= "ImageButton1" runat= "Server" imageurl= "devdays2004.jpg" ></asp:imagebutton>
To add in the Page_Load event:
IMAGEBUTTON1.ATTRIBUTES.ADD ("onmouseover", "this.src= ' 02.jpg");//mouse Move up to replace the new picture
IMAGEBUTTON1.ATTRIBUTES.ADD ("onmouseout", "this.src= ' 01.jpg");//mouse move back to original picture
  
   potentially dangerous Request.Form value detected from client (freetextbox1= "< P align=right>aa ...")
Error message:
Chinese information:
A potentially dangerous request.form value was detected from the client (freetextbox1= "< P align=right>aa ...").
English information:
A potentially dangerous Request.Form value is detected from the client (freetextbox1= "< P align=right>aa ...")
  
Workaround:
This is a new feature in the. NET Framework 1.1 that protects against malicious script attacks.
There are two ways to fix this:
Method 1. Add in the. aspx page:
<%@ Page validaterequest= "false"%>
Method 2. To modify the Web.config file:
< configuration>
< SYSTEM. Web>
< PAGES validaterequest= "false"/>
</system. Web>
</configuration>

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.