About Background Management LinkButton button several important properties of understanding

Source: Internet
Author: User

<asp:linkbutton id= "Lkbtndelete" runat= "Server" causesvalidation= "False" commandname= "Delete"
text= "Delete" commandargument= ' <%# Eval ("i_id")%> ' onclientclick= ' return confirm (' Are you sure you want to delete it? ‘);" ></asp:LinkButton>

CausesValidation: This property is primarily used when the Submit button is clicked, whether the validation control performs validation, and if the validation fails, the commit of the button is not executed. When CausesValidation is True, indicates that the button is clicked and the validation on the page is performed. If False, indicates that the button is clicked without triggering validation on the page.

Use the CommandName property to determine which command to execute. The CommandName property can contain any string that is set by the programmer. The programmer can then identify the command name in the code and perform the appropriate task.

CommandArgument: A primary key in the binding database

OnClientClick is used to execute client script. When we click a button, the first thing to do is the OnClientClick event, according to OnClientClick The return value of the event to determine whether to execute the onclick event to postback the page. Its return value is true and

False, the OnClientClick return value is true by default.

About Background Management LinkButton button several important properties of understanding

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.