搜索列表
-
如何对文件进行操作?
【编程10000问】<%@ LANGUAGE="VBScript" %><% 'Set file i/o constants. Const ForReading = 1 Const ForWriting = 2 Const ForAppending = 8 filename = "test.txt" path = Server.MapPath("data") & "\" & filename ' 映射...
|如何|何对|对文|文件|件进|进行|行操|操作|作?|?| -
如何创建Word文件?
【编程10000问】creatdoc.asp<!DOCTYPE html PUBLIC "-//W3C/Dtd html 3.2 Final//EN"><head><title>星河影动之创建Word文件</title><META HTTP-EQUIV="Refresh" CONTENT="30;URL='orderForm.asp'"></head><% dotLocatio...
|如何|何创|创建|建W|Wo|or|rd|d文|文件|件?|?| -
如何显示一个文本文件?
【编程10000问】 Write(StrING) WriteLine(StrING) WriteBlankLines(LINES) 〈html〉 〈head〉 〈http-equiv="Content-Type" content="text/html; charset=gb2312"〉 〈title〉春风精彩之文本文件显示〈/title〉 〈/head〉 〈body〉 <%...
|如何|何显|显示|示一|一个|个文|文本|本文|文件|件?|?| -
可以在线创建文件夹吗?
【编程10000问】folder.htm<html><head><title>闪亮日子之在线创建文件夹</title></head><body>春风精彩<br>在线创建文件夹</td> <tr> <td height="28"><form name="form1" method="post" action="creatfolder.asp"&...
|可以|以在|在线|线创|创建|建文|文件|件夹|夹吗|吗?|?| -
如何在Flash中处理Cookies?
【编程10000问】testCookies.asp' 检查浏览器是否接受Cookies.<%strTest = Request.QueryString("CookieTest")If UCase(strTest) <> Ucase("true") ThenSession("__FlashCookieTest") = True' 第一次呼叫.设置session变量.' 用QueryString重定向. strURL = Request.ServerVariables("script_NA...
|如何|何在|在F|Fl|la|as|sh|h中|中处|处理|理C|Co|oo|ok|ki|ie|es|s?|?| -
如何在ASP中恰当地运用Cookies?
【编程10000问】remberme.asp' 用户提交个人信息.<%response.Cookies("information")("姓名")=request.form("name")response.Cookies("information")("顾客号")=request.form("id")response.Cookies("information")("来自")=request.form("from")……' 定义一个名为information的Cookies字典,你可以定义更多,如果你需要....
|如何|何在|在A|AS|SP|P中|中恰|恰当|当地|地运|运用|用C|Co|oo|ok|ki|ie|es|s?|?| -
如何提示用户打开Cookie?
【编程10000问】Dim strCookie, strTrystrCookie = Request.Cookies("MyCookie") strTry = Request.QueryString("Try") If strCookie = "" Then ' 检测否是设置了Cookie. If strTry = "" Then &n...
|如何|何提|提示|示用|用户|户打|打开|开C|Co|oo|ok|ki|ie|e?|?| -
为什么用磁盘序列号加密过的代码不能被复制安装?
【编程10000问】default.asp<html><head><title>星河影动之磁盘序列号加密代码存取管理</title></head><% dim conn,fs,fSet conn = Server.CreateObject("ADODB.Connection")conn.open "driver={Microsoft Access Driver (*.mdb)};uid=;pwd=3302;dbq="&server.mappath("id.mdb")set fs=server.createObj...
|为什|什么|么用|用磁|磁盘|盘序|序列|列号|号加|加密|密过|过的|的代|代码|码不|不能|能被|被复|复制|制安|安装|装?|?| -
如何实现人民币的大写转换?
【编程10000问】第一个办法,这个程序可以进行万亿以下的货币金额转换(够用的了吧),其中汉字与数字均按一位计:Function AtoC(a As Currency) As String ' 定义两个字符串,A的值最多是两位小数. Dim String1 As String ' 如下定义. Dim String2 As String&...
|如何|何实|实现|现人|人民|民币|币的|的大|大写|写转|转换|换?|?| -
如何准确地获得一个整数?
【编程10000问】如何准确地获得一个整数?function NumbersOnlyNoDecimals(pInString) lNumbersOnly = "" for x = 1 to len(pInString) y = (len(pInString)-x+1) if isNumeric(mid(pInString, y,1)) then lNumbersOnly = lN...
|如何|何准|准确|确地|地获|获得|得一|一个|个整|整数|数?|?| -
如何测试字符串的长度?
【编程10000问】如何测试字符串的长度?Function CheckStringLength(txt) txt=trim(txt) x = len(txt) y = 0 for ii = 1 to x if asc(mid(txt,ii,1)) < 0 or asc(mid(txt,ii,1)) >255 then &...
|如何|何测|测试|试字|字符|符串|串的|的长|长度|度?|?| -
如何制作关联的下拉菜单?
【编程10000问】<form name=f1 METHOD="POST"><%OpenDB objConn, "xxxx"Set RSClass = objConn.Execute("select * from class Order by fldClass")If RSClass.EOF Then Response.Write "噢,没有记录!<BR>"ElseResponse.Write "<select NAME=""class"" style=""FONT-S...
|如何|何制|制作|作关|关联|联的|的下|下拉|拉菜|菜单|单?|?|