用ASP做一个记事本编缉器
<%@ Language=VBScript %>
<SCRIPT id=DebugDirectives runat=server language=javascript>
// Set these to true to enable debugging or tracing
@set @debug=false
@set @trace=false
</SCRIPT>
<HTML>
<HEAD>
<META name=VI60_defaultClientScript content=VBScript>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
Sub button2_onclick
fo1.TEXTAREA1.style.fontFamily=select1.value
End Sub
Sub button3_onclick
fo1.TEXTAREA1.style.fontSize=select2.value
End Sub
Sub button4_onclick
if button4.value="Bold" then
button4.value="Un Bold"
fo1.TEXTAREA1.style.fontWeight="Bold"
else
button4.value="Bold"
fo1.TEXTAREA1.style.fontWeight="normal"
end if
End Sub
Sub button5_onclick
if button5.value="Italics" then
button5.value="Un Italics"
fo1.TEXTAREA1.style.fontstyle="italic"
else
button5.value="Italics"
fo1.TEXTAREA1.style.fontstyle="normal"
end if
End Sub
Sub button6_onclick
window.close
End Sub
-->
</SCRIPT>
</HEAD>
<BODY>
<FONT face=arial size=3 color=royalblue><B>ASP NOTEPAD</b></font>
<%dim x
if Request("type")="save" then
x = 1
end if
%>
<OBJECT id=OBJECT1 PROGID="Scripting.FileSystemObject" RUNAT="server"></OBJECT>
<TABLE bgColor=blanchedalmond border=0 cellPadding=1 cellSpacing=1
width="100%">
<TR>
<TD>
<% if not len(request("doc"))=0 then%>
<Font face=arial size=2>Document:<B> <%=Request.querystring("doc")%></B></font>
<%else%>
<Font face=arial size=2>Document:<B> Untitled</B></font>
<%
end if%>
</TD>
</TR>
</TABLE>
<P><SELECT id=select1 name=select1 style="HEIGHT: 22px; WIDTH: 25%">
<OPTION value='Times New Roman'>Times New Roman</option>
<OPTION value='System'>System</option>
<OPTION value='
相关文档:
我想在asp中加一个链接,指向asp.net网页,但asp.net的网址是经过HttpUtility.UrlEncode变形和HttpUtility.UrlDecode变回的,而asp的server.urlencode却产生不了和HttpUtility.UrlEncode一样的编码,请问有没有解决办法
补充:原来asp.net的是"web.aspx?str="+HttpUtility.UrlEncode(str)
和HttpUtility.UrlDecode(Requ ......
ASP部分讲述: 对于ASP来说相信大家都并不陌生,在这里我就不浪费太多的时间来进行阐述了。
我这里主要是记录了我在读ASP时的一些心得和我自己认为应该注意的地方,希望这些点点滴滴能够为那些初学的朋友有一定的帮助,同时也希望和已经有很深经验和 ......
什么是 ADO 存取数据库时的分页显示?如果你使用过目前众多网站上的电子公告板程序的话,那你应该会知道电子公告板程序为了提高页面的读取速度,一般不会将所有的帖子全部在一页中罗列出来,而是将其分成多页显示,每页显示一定数目的帖子数,譬如 20 条。这就是数据库查询的分页显示,如果你还不明白,去看看 yahoo 等搜索 ......
请看如下源代码:
<%
'向数据库写入数据
SUB writeData()
dim recCnt,i
dim fieldName1,fieldName2,fieldName3
dim conn
dim sqlStr,connStr
connStr="Provider=SQLOLEDB.1;Initial Catalog=myDatabase;Data Source=myhon;User Id=sa;PASSWORD="
set conn=Server.CreateObject("ADODB.Connection")
c ......
这几天因为网站涉及到二极域名共用session的问题,头痛。在网上找了好久的料,终于在csdn里面找到2004年前辈们讨论的解决方案,个人感觉很
受用。
楼主
yufeiyxl(与
飞)
我要向各位请教的是Cookie的跨域访问问题。
......