一些ASP技术及实用解决方案

一些ASP技术及实用解决方案

随机数:




查询数据时获得的记录关键字以红色显示:

searchname % >)

检查访问者是否通过asp使用了代理

然后
response.write 你通过一个代理服务器,_
真正的IP是request.servervariables(http_x_forwarded_for )
最后如果
%>

确定最后一页的来源

request.servervariables(http_referer )
Javascript:document.referrer

清除缓存并重新加载页面

<% response.expires = 0
response.expiresabsolute =现在()- 1
response.addheader语用
response.addheader缓存控制
response.cachecontrol = 不缓存
%>

在下拉菜单中显示年份和月份


<
昏暗的m_year
昏暗的m_month
昏暗的m_monthj
昏暗的m_themonth
昏暗的m_ym
对于m_year = 2000年(日期)
m_month = 12
If M_Year = Year (Date) Then
m_month =月(日)
最后如果
对于m_monthj = 1 m_month
如果m_monthj<10
m_themonth =0m_monthj
其他的
m_themonth = m_monthj
最后如果
m_ym = m_year - m_themonth %>
>
<
下一个
二%>


检索和删除数据库中的重复记录

conn.execute(删除表中没有(选择不同的表))