Asp.net cofcms website content management system, debugging records

Source: Internet
Author: User

I. Reasons for endless homepage Loops. Different access and SQL syntaxes lead to exceptions when displaying advertisements.

Select Id, Aid, Title, StartTime, EndTime, AdUrl, LinkUrl, AdRemark, IsLock, AddTime FROM Adbanner
Where IsLock = 0 and datediff (day, StartTime, getDate ()> = 0 and datediff (day, EndTime, getDate () <= 0 and Aid = 1

Datediff (day, StartTime, getDate ()> = 0 to determine whether the specified date has passed, datediff (day, EndTime, getDate () <= 0 to determine whether the specified date has expired.

The reason for the cms endless loop is that access and SQL syntax are different, resulting in exceptions. The following is the access Syntax:

Select Id, Aid, Title, StartTime, EndTime, AdUrl, LinkUrl, AdRemark, IsLock, AddTime
FROM Adbanner where IsLock = 0 and datediff ('D', StartTime, now ()> = 0 and datediff ('D', EndTime, now ()) <= 0 and Aid = 1

Ii. Reasons for endless background logon pages. <Script type = "text/javascript" src = "js/focus. js"> </script> references this js file, leading to an endless page loop and unknown reasons. This js file is not found in the project.

You can delete this reference to run properly.

 

 

From column BQL_Email

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.