Debugging with clients, SQL in and exist, and IE cache Problems

Source: Internet
Author: User

1. How can I work with the client on the server?

The procedure is as follows:

A. Release the first version of the project on the local IIS and cannot be changed later.Code, Must be consistent with the released code on the machine.
B. Tell the client the IP address of the Local Machine for the client to call. (Not localhost)
C. If the program is not running: DEBUG = "additional process =" check all processes = "and append w3wp processes.

2. SQL statement in

Example

Update t_org_cap set isactive = 'n' where contactname in (select cname from t_org_contact where isactive = 'n ')

If you write an exist statement, yes

Update t_org_cap set isactive = 'n' where exists (select cname from t_org_contact where cname = t_org_cap.contactcname and isactive = 'n ')

3.ProgramIt took four hours to solve a bug. In view, Ajax calls the Controller method, but fails to get in after the breakpoint is set. The strange thing is that the Ajax success callback function is successfully executed. This problem does not occur in chrome. Finally, after consultation and discussion, I found that the reason is that the IE cache will invalidate Ajax. A search is a classic problem that many people have encountered. Solution: Add a random parameter to the Ajax call URL.

4. It took another half a day to work with the client. Finally, a bug was found: it is dangerous to use the "=" symbol to compare the datetime type. Because "=" compares the Tink value of datetime, rather than the literal value. The solution is to write the dt1.tostring. Equals (dt2.tostring) method to be equal. For comparison, use ">" and "<.

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.