导航:首页 > 源码编译 > asp竞拍源码

asp竞拍源码

发布时间:2022-10-18 02:37:31

① ASP.NET的一个拍卖项目。商品都有一个截拍时间,当前时间等于截拍时间时,生成一个订单,并修改商品状态

这个放在前端是非常不安全的啊
最好放在后端用asp.net控制
因为js的当前时间是用户操作系统的时间吧
而且js代码也是用户可以任意修改的
太不安全了

② 用asp编写网站源码,相对于新手和其他编写方式有什么优缺点!

asp环境容易搭建,一个IIS和一个编写软件就可以搞定,对于简单的输出数据库的信息和写进数据库去,操作起来简单。但缺点就是一些复杂的程序用asp写太麻烦了,逻辑关系一没掌握好,就容易报错。而且安全性也比较低。
php的环境搭建比较困难,新手的话,有的就算给你搭建的方法,你去搭建环境也容易出错。优点就是编写一些普遍的程序可以不用自己写,网上一搜就能搜到。安全性也高一点。其实我个人感觉asp的语法跟php的差不多。

其实最大的缺点就是,asp程序员的工资比php程序员的低了好多。呵呵。

③ 图片上传的ASP源代码

4个文件实现无组件上传4个文件实现无组件上传
嵌套式调用:
<iframe name="ad" frameborder=0 width=100% height=50 scrolling=no src=uploada.asp></iframe>

直接链接:uploada.asp
文件保存路径:upload
上传文件类型和大小自己设置

===========================================
第一个文件:inc/confing.asp(inc为文件夹名称)
<%
Const EnableUploadFile="Yes" '是否开放文件上传
Const MaxFileSize=200 '上传文件大小限制
Const UpFileType="gif|jpg|bmp|png|swf|doc|txt|rar|zip" '允许的上传文件类型
%>

===========================================
第二个文件:inc/upload.asp

dim oUpFileStream

Class upload_file

dim Form‚File‚Version

Private Sub Class_Initialize
'定义变量
dim RequestBinDate‚sStart‚bCrLf‚sInfo‚iInfoStart‚iInfoEnd‚tStream‚iStart‚oFileInfo
dim iFileSize‚sFilePath‚sFileType‚sFormvalue‚sFileName
dim iFindStart‚iFindEnd
dim iFormStart‚iFormEnd‚sFormName
'代码开始
Version="无组件上传类 Version 0.96"
set Form = Server.CreateObject("scripting.Dictionary")
set File = Server.CreateObject("scripting.Dictionary")
if Request.TotalBytes < 1 then Exit Sub
set tStream = Server.CreateObject("adodb.stream")
set oUpFileStream = Server.CreateObject("adodb.stream")
oUpFileStream.Type = 1
oUpFileStream.Mode = 3
oUpFileStream.Open
oUpFileStream.Write Request.BinaryRead(Request.TotalBytes)
oUpFileStream.Position=0
RequestBinDate = oUpFileStream.Read
iFormEnd = oUpFileStream.Size
bCrLf = chrB(13) & chrB(10)
'取得每个项目之间的分隔符
sStart = MidB(RequestBinDate‚1‚ InStrB(1‚RequestBinDate‚bCrLf)-1)
iStart = LenB (sStart)
iFormStart = iStart+2
'分解项目
Do
iInfoEnd = InStrB(iFormStart‚RequestBinDate‚bCrLf & bCrLf)+3
tStream.Type = 1
tStream.Mode = 3
tStream.Open
oUpFileStream.Position = iFormStart
oUpFileStream.CopyTo tStream‚iInfoEnd-iFormStart
tStream.Position = 0
tStream.Type = 2
tStream.Charset ="gb2312"
sInfo = tStream.ReadText
'取得表单项目名称
iFormStart = InStrB(iInfoEnd‚RequestBinDate‚sStart)-1
iFindStart = InStr(22‚sInfo‚"name="""‚1)+6
iFindEnd = InStr(iFindStart‚sInfo‚""""‚1)
sFormName = Mid (sinfo‚iFindStart‚iFindEnd-iFindStart)
'如果是文件
if InStr (45‚sInfo‚"filename="""‚1) > 0 then
set oFileInfo= new FileInfo
'取得文件属性
iFindStart = InStr(iFindEnd‚sInfo‚"filename="""‚1)+10
iFindEnd = InStr(iFindStart‚sInfo‚""""‚1)
sFileName = Mid (sinfo‚iFindStart‚iFindEnd-iFindStart)
oFileInfo.FileName = GetFileName(sFileName)
oFileInfo.FilePath = GetFilePath(sFileName)
oFileInfo.FileExt = GetFileExt(sFileName)
iFindStart = InStr(iFindEnd‚sInfo‚"Content-Type: "‚1)+14
iFindEnd = InStr(iFindStart‚sInfo‚vbCr)
oFileInfo.FileType = Mid (sinfo‚iFindStart‚iFindEnd-iFindStart)
oFileInfo.FileStart = iInfoEnd
oFileInfo.FileSize = iFormStart -iInfoEnd -2
oFileInfo.FormName = sFormName
file.add sFormName‚oFileInfo
else
'如果是表单项目
tStream.Close
tStream.Type = 1
tStream.Mode = 3
tStream.Open
oUpFileStream.Position = iInfoEnd
oUpFileStream.CopyTo tStream‚iFormStart-iInfoEnd-2
tStream.Position = 0
tStream.Type = 2
tStream.Charset = "gb2312"
sFormvalue = tStream.ReadText
form.Add sFormName‚sFormvalue
end if
tStream.Close
iFormStart = iFormStart+iStart+2
'如果到文件尾了就退出
loop until (iFormStart+2) = iFormEnd
RequestBinDate=""
set tStream = nothing
End Sub

Private Sub Class_Terminate
'清除变量及对像
if not Request.TotalBytes<1 then
oUpFileStream.Close
set oUpFileStream =nothing
end if
Form.RemoveAll
File.RemoveAll
set Form=nothing
set File=nothing
End Sub

'取得文件路径
Private function GetFilePath(FullPath)
If FullPath <> "" Then
GetFilePath = left(FullPath‚InStrRev(FullPath‚ "\"))
Else
GetFilePath = ""
End If
End function

'取得文件名
Private function GetFileName(FullPath)
If FullPath <> "" Then
GetFileName = mid(FullPath‚InStrRev(FullPath‚ "\")+1)
Else
GetFileName = ""
End If
End function

'取得扩展名
Private function GetFileExt(FullPath)
If FullPath <> "" Then
GetFileExt = mid(FullPath‚InStrRev(FullPath‚ ".")+1)
Else
GetFileExt = ""
End If
End function

End Class

'文件属性类
Class FileInfo
dim FormName‚FileName‚FilePath‚FileSize‚FileType‚FileStart‚FileExt
Private Sub Class_Initialize
FileName = ""
FilePath = ""
FileSize = 0
FileStart= 0
FormName = ""
FileType = ""
FileExt = ""
End Sub

'保存文件方法
Public function SaveToFile(FullPath)
dim oFileStream‚ErrorChar‚i
SaveToFile=1
if trim(fullpath)="" or right(fullpath‚1)="/" then exit function
set oFileStream=CreateObject("Adodb.Stream")
oFileStream.Type=1
oFileStream.Mode=3
oFileStream.Open
oUpFileStream.position=FileStart
oUpFileStream.to oFileStream‚FileSize
oFileStream.SaveToFile FullPath‚2
oFileStream.Close
set oFileStream=nothing
SaveToFile=0
end function
End Class
%>

========================================
第三个文件:uploada.asp

<!--#include file="Inc/config.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
BODY{
BACKGROUND-COLOR: #f5feed;
font-size:9pt
}
.tx1 { height: 20px;font-size: 9pt; border: 1px solid; border-color: #000000; color: #0000FF}
-->
</style>
<link href="Manage/Inc/ManageMent.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<%
if EnableUploadFile="Yes" then
%>
<form action="upfilea.asp" method="post" name="form1" enctype="multipart/form-data">
<input name="FileName" type="FILE" class="tx1" size="20">
<input type="submit" name="Submit" value="上传" style="border:1px double rgb(88‚88‚88);font:9pt">
</form>
<%
end if
%>
</body>
</html>

============================
第四个文件:upfilea.asp

<!--#include file="Inc/config.asp"-->
<!--#include file="Inc/upload.asp"-->
<%
const upload_type=0 '上传方法:0=无惧无组件上传类,1=FSO上传 2=lyfupload,3=aspupload,4=chinaaspupload

dim upload‚file‚formName‚SavePath‚filename‚fileExt
dim upNum
dim EnableUpload
dim Forumupload
dim ranNum
dim uploadfiletype
dim msg‚founderr
msg=""
founderr=false
EnableUpload=false
SavePath = "Upload" '存放上传文件的目录
if right(SavePath‚1)<>"/" then SavePath=SavePath&"/" '在目录后加(/)
%>
<%
ComeinSTR=lcase(request.servervariables("HTTP_HOST"))
Url=split(ComeinSTR)
yourthing=Url(0)
%>
<html>
<head>
<link href="Manage/Inc/ManageMent.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<%
if EnableUploadFile="NO" then
response.write "系统未开放文件上传功能"
else

select case upload_type
case 0
call upload_0() '使用化境无组件上传类
case else

end select

end if
%>
</body>
</html>
<%
sub upload_0() '使用化境无组件上传类
set upload=new upload_file '建立上传对象
for each formName in upload.file '列出所有上传了的文件
set file=upload.file(formName) '生成一个文件对象
if file.filesize<100 then
msg="请先选择你要上传的文件!"
founderr=true
end if
if file.filesize>(MaxFileSize*1024) then
msg="文件大小超过了限制,最大只能上传" & CStr(MaxFileSize) & "K的文件!"
founderr=true
end if

fileExt=lcase(file.FileExt)
Forumupload=split(UpFileType‚"|")
for i=0 to ubound(Forumupload)
if fileEXT=trim(Forumupload(i)) then
EnableUpload=true
exit for
end if
next
if fileEXT="asp" or fileEXT="asa" or fileEXT="aspx" then
EnableUpload=false
end if
if EnableUpload=false then
'msg="这种文件类型不允许上传!\n\n只允许上传这几种文件类型:" & UpFileType
response.write"<script language=javascript>alert('这种文件类型不允许上传!\n\n只允许上传这几种文件类型:" &

UpFileType & "');"
response.write"javascript:history.go(-1)</script>"
founderr=true
end if

strJS="<script language=javascript>" & vbcrlf
if founderr<>true then
randomize
ranNum=int(900*rnd)+100
filename=SavePath&year(now)&month(now)&day(now)&hour(now)&minute(now)&second(now)&ranNum&"."&fileExt

file.SaveToFile Server.mappath(FileName) '保存文件

msg="上传文件成功!"

FileType=right(fileExt‚3)
select case FileType
case "jpg"‚"gif"‚"png"‚"bmp"
case "swf"
case else
strJS=strJS & "range.text=' 点击浏览该文件';" & vbcrlf
end select
end if
strJS=strJS & "alert('" & msg & "');" & vbcrlf

strJS=strJS & "</script>"
response.write strJS
response.write "图片上传成功!文件路径是 /" & filename & "<br>"
response.write "http://";; & yourthing & "/" & filename & "<br>"
set file=nothing
next
set upload=nothing
end sub
%>

④ 在网上买了一个ASP货源导航源码,想改成PHP或HTML的,要怎么样修改有什么工具吗,说的具体点。

淘宝上有修改的,不过还是建议你不要用ASP源码了,安全系数不高,FSO工具可以转为HTML,如果不想花太多钱,在淘宝上搜一下DedeCms,用最新版本工具可以仿模版的,价格也不高,可以了解一下。

⑤ 如何查看ASP源码到底是什么内容

把网站源码先下载到本地,然后用dreamweaver打开,查看,找到不想要的地方,然后删除就行了。我估计你是一点都不会。我猜你是要删除数据库里的内容,而不是asp程序中的内容。小网站一般是access,office办公软件系列中的一个,安装好后,打开下载的数据库,自己慢慢找了

⑥ asp 企业网站源码产品展示

基本如76887188所示代码,但76887188的代码中还有一个错误和一些冗余的代码,所以影响了使用,无错代码如下:
<!--代码开始-->
<img onmousemove="javascript:change_style(this);if(this.width>500)this.width=500" id="this_img" style="CURSOR: url

('http://www.feiyuc.com/site/images/pre.cur');border: 1 solid #000000" onclick="click_pic(this);" alt="[竹家具]图片:点击跳到

上一张" src="http://www.feiyuc.com/site/gb_upfile/222/222_2009423164525469_1.jpg" onload="javascript:if(this.width>500)

this.width=500">
<script>
function click_pic(o) {
if(event.offsetX <= o.clientWidth/2)
goPage("pre");
else
goPage("next");
}

function goPage (page) {
switch(page) {
case "pre": window.location="?userid=222&id=16005"; break;
case "next":window.location="?userid=222&id=32468"; break;
}
}

function change_style(o) {
if(event.offsetX <= o.clientWidth/2 ) {
if( !o.style.cursor.match("pre") )
o.style.cursor = "url("+"http://www.feiyuc.com/site/images/pre.cur"+")";
if( o.alt != "[竹家具]图片:点击跳到上一张" )
o.alt = "[竹家具]图片:点击跳到上一张";
}
else if( !o.style.cursor.match("next") ){
o.style.cursor="url("+"http://www.feiyuc.com/site/images/next.cur"+")";
if( o.alt != "[竹家具]图片:点击跳到下一张" )
o.alt = "[竹家具]图片:点击跳到下一张";
}
return;
}
</script>
<!--代码结束-->
将以上代码中实际图片地址http://www.feiyuc.com/site/gb_upfile/222/222_2009423164525469_1.jpg替换成你的图片地址,再将以上代码放到你的展示区即可!
如果是在ASP中,只需要将有链接接部分换成数据库中相应的字段就可以了啊!
即:
<!--这里放打开存放展示产品的数据库ASP代码(如果不会写哪建议你去学习一下ASP基础知识再来讨论这个问题^_^)-->
<img onmousemove="javascript:change_style(this);if(this.width>500)this.width=500" id="this_img" style="CURSOR: url

('<%=rs("点击图片打开的链接")%>');border: 1 solid #000000" onclick="click_pic(this);" alt="[竹家具]图片:点击跳到

上一张" src="<%=rs("展示图片地址!")%>" onload="javascript:if(this.width>500)

this.width=500">
=================================
JS代码用document.write来写

document.write "<script>......</script>";
记得将双引号"换成单引号',还就是将上一张和下一张的链接即下面的代码
switch(page) {
case "pre": window.location="?userid=222&id=16005"; break;
case "next":window.location="?userid=222&id=32468"; break;
}
中的id=换成相应上一张和下一张对应的数据库中的ID号就行了;

⑦ 求ASP代码

1.
<%
a=request("num")
if a mod 2=0 then
response.write "偶数"
else
response.write "奇数"
end if
%>
2.
<%
a=request("价钱")
if a>100 then a=a+(a-100)*0.8
if a>50 and a<=100 then a=a* 0.9
response.write a
%>
3.
<%
if day(now)=25 then response.write "明天可能有病毒发作"
%>
4.有点复杂
用到application 具体的可网上查下 很简单的 总访问人数用个fso可以实现了
5.你看下globa.asa说明

⑧ asp源文件

你说的看asp源码,是看它制作的效果吧,我想,你需要装一个IIS,然后,把你下的asp源码存放的目录设为虚拟目录,然后用IE打开它~!或者,你试试dreamweaver这个软件,它能看到部份设计效果~!

⑨ 做一个asp的小型拍卖网站大概多少钱

现在应该起不过3000元。应该会用SQL,估计没人用ACCESS了。

⑩ asp系统怎么用啊网站源码

首页你本地电脑必须安装有IIS服务器。这样才能运行ASP程序。接着你要下载dreamweaver,这个是网站排版,程序开发,测试网站的工具。要想看懂源码,需要很迈长的时间。要有绝对的信心拿下它。

阅读全文

与asp竞拍源码相关的资料

热点内容
两个数字的加减乘除运算编程 浏览:221
给手机加密码忘记了怎么办 浏览:596
单片机运算符 浏览:292
移动端微信商城源码 浏览:442
编程猫下一个背景在哪里 浏览:356
javaclasstype 浏览:237
乐高编程和乐高课的延伸 浏览:354
苹果手机怎么切换app美国账号 浏览:865
编译程序输入一个字符串 浏览:407
圆命令画法 浏览:308
如果给电脑e盘文件加密 浏览:802
javaswing项目 浏览:778
androidsdksetup 浏览:1005
pdf怎么设置中文 浏览:128
安卓手机用什么软件看伦敦金 浏览:966
魅族文件夹无名称 浏览:792
苏黎世无人机算法 浏览:876
核桃编程和小码王的融资 浏览:686
微积分教材pdf 浏览:728
写python给微信好友发消息 浏览:340