08
2018
10

asp查询读出列出只显示今天的信息记录

asp查询读出列出只显示今天的信息记录

02
2018
10

asp取出字段中的年月日小时分方法

<%=Year(rscao("gl_date"))&"-"&Right("0"&Month(rscao("gl_date")),2)&"-"&Right("0"&Day(rscao("gl_date")),2)&" "&Right("0"&Hour(rscao("gl_date")),2)&":"&Right("0"&Minute(rscao("gl_date")),2)&":"&Right("0"&Second(rscao("gl_date")),2)%>

28
2018
07

asp显示货币的两种形式,带小于0的方式

第一种,普通的方式,可以显示为11.17元

后台的2是小数点后面2位的意思

<%=FormatNumber(Rs("xc"),2)%>



第二种,可以显示小于0或是等于0的货币,例:0.00元

后面那个-1就是专用门来显示货币小于1用的

<%=FormatNumber(Rs("xc"),2,-1)%>


22
2018
07

asp单行代码输入一个分类名

<%response.Write(Conn.execute("select name from [productSort] where id="&html_id)(0))%>

可以用于输入产品分类,或是栏目分类等

21
2018
07

asp新闻分类图片分类的简短保存代码

'栏目
rs("class") = Conn.execute("select class from [class_kp] where id="&rf("lanmu"))(0)
rs("classid")=rf("lanmu")
'栏目

20
2018
07

asp单行代码统计表内各种数据总和

<% = Conn.Execute("select count(dlsid) from [member] where dlsid='"&newdlshyid&"'")(0) %> 人

会员人数:<% = Conn.Execute("select count(dlsid) from [member] where dlsid='"&newdlshyid&"'")(0) %>

26
2018
04

asp实现html伪静态竟然那么简单

1.单参数

功能:

把:www.44721.cn/movie.asp?id=123

伪静态为:www.44721.cn/movie.asp?123.html

 

代码如下: 

 

ASP/Visual Basic代码

<% 

id=request.QueryString("id") 

If id="" Then 

25
2018
04

asp中按字母来排序

mssql数据库用:
order by SubString([字段名],1,1) asc

数据库用:
order by mid([字段名],1,1) asc


12
2018
04

asp循环出来的多条内容格式化别的表中的字段

asp循环出来的多条内容格式化别的表中的字段

10
2018
04

css背景渐变

css背景渐变

background:linear-gradient(to right,#389afc,#057af1);