function mistake(preString)
Dim texts
Dim seed
Dim i,length
prestring = trim(preString)
length = len(preString)
seed = length
Random ......
我在asp页面做了一个从1开始往上累加的东西,为什么每次点击按钮时数值都不往上加。
不知道什么原因,请教高手!
看看你的代码啊
int a=0;
a++;
txtBox.text=a.toString();
在button的Click事件中写的
我同样用winform就可以累加
不知道为什么
初学asp不太明白
望高手 ......
利用asp来导出文件到excel,不需要office组件,如何做?谢谢!能提供个参考的网址。。
http://www.mscto.com/aspnet/2009021435632.html
楼上的,我不需要用owc,达到导出到excel的功能,并且能通过代码来自定义导出的样式的。
在文件头部添加
<%response.ContentType ="application/vnd.ms-excel" ......
文件:folder.inc
HTML code:
<%
Dim folderini,pos,pageName
fPath = Request.ServerVariables("PATH_TRANSLATED")
pos = instrRev(fPath,"\")
folderini = Left(fPath,pos)+"Upfile"
%>
文件:index.asp
HTML code:
<!--#Include file="folder.inc& ......
在VB按MVC的构架写组件供ASP调用
BLL层
VB code:
Private Dal As New moonPotato_DAL
Public Sub inSertUser(Model As moonPotato_Model)
Dal.InSertCls (Model)
End Sub
ASP中调用
VB code:
Set BLL = server.CreatoObject("tttt.moonPotato_BLL")
Set M ......
这个程序是读大一时学C语言我自己想出的,老师直夸我聪明,现在用ASP改写了,大家知道运行结果吗
<table width="486" border="1" cellpadding="0" cellspacing="1">
<% dim ary(8,8)
for k=1 to 5
for i=k to 10-k
for j=k ......