The problem of applying jquery to the login page and resolving _jquery

Source: Internet
Author: User
Recently in learning and experimenting with jquery, it feels like it's a perfect combination of Ajax and ASHX to send back json, and if we can use this in form validation, the login page can almost achieve simplicity. In the login page, use jquery's Ajax callback ASHX to authenticate the username and password and then turn to another page. Initial verification, the login ticket is constructed manually in Ashx, and then returned to the login side, which can complete the login.
Next, it is to introduce jquery into the Login.aspx page, place jquery in the Lib directory, place the USER.ASHX in the Services directory, and invoke it in Login.aspx using Jquery.ajax. But in code completion, the actual use of each entry into the Login.aspx page to initialize, always error, hint: Jquery.js the first line of missing objects, so the form validation <authorization> section of the <deny user= "?" /> Modified into <allow user= "*"/>, run OK. Baffled, after the MSN jquery Group about blank (ID?) Provides a workaround because in form validation we refer to the jquery.js in Login.aspx, so the page is oriented lib/ Jquery.js, we will also find that we have not verified, do not have the right to download this JS file, so the Lib directory to add web.config files, the Jquery.js file access to the Allow user=*, and the User.ashx file is also set. So far, the problem is solved.


is thought, thanks about blank Friend's help!

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.