最新下载
热门教程
- 1
 - 2
 - 3
 - 4
 - 5
 - 6
 - 7
 - 8
 - 9
 - 10
 
ASP 编程中 20 个非常有用的例子――适合初学者
时间:2022-07-02 22:52:31 编辑:袖梨 来源:一聚教程网
                                            如果内容很多,请先在本机编辑好,以免session过期导致内容丢失。ASP 编程中 20 个非常有用的例子  
1.如何用Asp判断你的网站的虚拟物理路径
答:使用Mappath方法
  
The Physical path to this virtual website is:
  
  
  
  
2.我如何知道使用者所用的浏览器?
答:使用the Request object方法
strBrowser=Request.ServerVariables("HTTP_USER_AGENT")
If Instr(strBrowser,"MSIE") 0 Then
Response.redirect("ForMSIEOnly.htm")
Else
Response.redirect("ForAll.htm")
End If
3.如何计算每天的平均反复访问人数
答:解决方法
if strdateavgvpd=Int((usercnt)/startdate) % >
显示结果
  
that is it.this page have been viewed since November 10,1998
4.如何显示随机图象
ppic=12
randomize
p=Int((ppic*rnd)+1)
dpic="graphix/randompics/"&p&".gif"
% >
显示
" >
5.如何回到先前的页面
答:" >preivous page
或用图片如:" >
6.如何确定对方的IP地址
答:
7.如何链结到一副图片上
答:
                                        				                
                    
                        
                            
                        
                
                
            1.如何用Asp判断你的网站的虚拟物理路径
答:使用Mappath方法
The Physical path to this virtual website is:
2.我如何知道使用者所用的浏览器?
答:使用the Request object方法
strBrowser=Request.ServerVariables("HTTP_USER_AGENT")
If Instr(strBrowser,"MSIE") 0 Then
Response.redirect("ForMSIEOnly.htm")
Else
Response.redirect("ForAll.htm")
End If
3.如何计算每天的平均反复访问人数
答:解决方法
if strdateavgvpd=Int((usercnt)/startdate) % >
显示结果
that is it.this page have been viewed since November 10,1998
4.如何显示随机图象
ppic=12
randomize
p=Int((ppic*rnd)+1)
dpic="graphix/randompics/"&p&".gif"
% >
显示
" >
5.如何回到先前的页面
答:" >preivous page
或用图片如:" >
6.如何确定对方的IP地址
答:
7.如何链结到一副图片上
答:
相关文章
- 过山车之星2游乐园声誉提升方法分享 11-04
 - 过山车之星2独特景点作用介绍说明 11-04
 - 炉石传说标准模式轮盘术卡组推荐分享 11-04
 - 炉石传说标准小行星萨卡组推荐分享 11-04
 - 炉石传说基尔加丹轮盘术卡组推荐分享 11-04
 - 炉石传说宇宙彩虹DK高胜率卡组推荐分享 11-04