How to implement multiple Ajax extender controls in an Ajax extender Project

Source: Internet
Author: User

Refer toCodeOrganization method to adjust the Organization Mode of custom Ajax controls in pqsys. Although there is only one control, it will inevitably increase in the future and there will be only one unified rule, to facilitate code addition and maintenance in the future;
A new problem occurred while adjusting the structure. The expected results are similar to the organizational structure of controls in the ajaxcontroltoolkit. It is hoped that a project can contain multiple Ajax extender controls. For example, now I have created an Asp.net Ajax control project named customajaxcontrols, which will automatically generate three files. Delete these three files, and then add a new Asp.net Ajax extender control named hoverbutton. Then, compile the project without doing anything. And use this control in a test page. The following error is returned:
[Invalidoperationexception: assemb' mamajaxcontrol, version = 0.0.0.0, culture = neutral, publickeytoken = NULL 'ins ins a web resource with name' customajaxcontrol. hoverbuttonbehavior. js', but does not contain an embedded resource with name' mamajaxcontrol. hoverbuttonbehavior. js'.]
The general meaning is that the compiled control DLL does not have the JS resource file required.

After one morning's search, I found the crux of the problem. For the JS files of all newly added controls, set the build action attribute of the file to embeded resource.
That's simple.

Related Article

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.