Simple _ dopostback Function

Source: Internet
Author: User

I have heard of the frontend function of _ dopostback, which is mainly used for the PostBack of Web controls,

It sends control information to the server through two hidden controls _ eventtraget ,__ eventargument,

_ Eventtraget is the name of the control to be called. If the control to be called is a child control, use ''$ 'or': 'To separate the parent control: Child control,

_ Eventargument is the parameter used to call an event,

But it has never been used. Xunzi said: "Do not know what to do ". Writing todayCodeSo I tried it.

_ Dopostback is the simplest way to use it:

1. Draw a widget on the page that can generate the _ dopostback function. (Not all Web controls use _ dopostback to generate event sending.) I personally like to use linkbutton and set the text attribute to a null value. If the control is hidden, the _ dopostback function is not generated. 2. Write the Control ID that you want to trigger the PostBack event to the following function calls: _ dopostback ('imgmap ',''); here imgmap is the control for sending back. 3. Now you can call _ dopostback ('imgmap', '') in a foreground event. 4. write code in the background imgmap_click event.

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.