仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 524|回复: 9
打印 上一主题 下一主题

[学习教程] ASP教程之静态发生变量

[复制链接]
分手快乐 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-1-16 23:15:58 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
当然了,现在国内CRM厂商的产品与其说是CRM,但从至少从我的角度分析上来看,充其量只是一个大型的进销存而已了,了解尚浅,不够胆详评,这里只提技术问题变量|静态Thepurposeofthisapplicationistomakeiteasiertocaputredatafromforms.IknowwhenIcreate
formsIhatetypinginalltherequest.forminformationinmycode,soIdecidedtowriteawayto
dynamicallycreatetherequestwhichstripthevariableforapostrophesandalsotrimsthevariable



CantCopyandPastethis?
Clickhereforacopy-and-pastefriendlyversionofthiscode!



**************************************
for:DynamicallyGenerateVariables
**************************************
http://www.chernoblechicken.com


code:
CantCopyandPastethis?
Clickhereforacopy-and-pastefriendlyversionofthiscode!


TermsofAgreement:
Byusingthiscode,youagreetothefollowingterms...
1)Youmayusethiscodeinyourownprograms(andmaycompileitintoaprogramanddistributeitin
compiledformatforlangaugesthatallowit)freelyandwithnocharge.
2)YouMAYNOTredistributethiscode(forexampletoawebsite)withoutwrittenpermissionfromthe
originalauthor.Failuretodosoisaviolationofcopyrightlaws.
3)Youmaylinktothiscodefromanotherwebsite,butONLYifitisnotwrappedinaframe.
4)Youwillabidebyanyadditionalcopyrightrestrictionswhichtheauthormayhaveplacedinthecodeor
codesdescription.


**************************************
Name:DynamicallyGenerateVariables
Description:Thepurposeofthisapplic
ationistomakeiteasiertocaputreda
tafromforms.IknowwhenIcreateform
sIhatetypinginalltherequest.form
informationinmycode,soIdecidedto
writeawaytodynamicallycreatethere
questwhichstripthevariableforapost
rophesandalsotrimsthevariable
By:AnthonyJ.BiondoJr

Returns:returnstextwhichyoucancop
yandpasteintoyouaspapplication.

Thiscodeiscopyrightedandhaslimitedwarranties.Pleaseseehttp://w
ww.Planet-Source-Code.com/xq/ASP/txtCode
Id.6334/lngWId.4/qx/vb/scripts/ShowCode.
htmfordetails.**************************************

<HTML>
<%
DYNAMICALLYGENERATEREQUEST
Description:Thisscriptwillallowyo
utodynamicallygeneratevariablesfor
thehugeformsthatnoonelikestocrea
te.
Howtouse:Typeinthevariablename
selectquerystringorformandhitsubmi
t.Tomakemorevariablesincreasetheh
owmanycount.

Coder:AnthonyJBiondoJr.(anthonyb@
inbridesburg.com)

HOWMANYVARIABLESTOCREATE
how_many=50
mycreate=request.querystring("create")
Ifmycreate=""Then
%><TITLE>DynamicallyGenerateVariables</TITLE>
<BODYbgcolor="#FFFFFF">
<FORMmethod="post"action="dyn_gen_variables.asp?create=1">
<FONTface="Verdana,Arial,Helvetica,sans-serif"size="2"><B>DynamicallyGenerate
Variables</B><BR>
<BR>
VariableName:</FONT>
<INPUTtype="text"name="variablename">
<BR>
<FONTface="Verdana,Arial,Helvetica,sans-serif"size="2">RequestType:</FONT>
<INPUTtype="radio"name="requesttype"value="querystring"checked>
<FONTface="Verdana,Arial,Helvetica,sans-serif"size="2">Querystring</FONT>
<INPUTtype="radio"name="requesttype"value="form">
<FONTface="Verdana,Arial,Helvetica,sans-serif"size="2">Form</FONT><BR>
<BR>
<INPUTtype="submit"name="Submit"value="Submit">
</FORM>
<%
else
%>
<TITLE>DynamicallyGenerateVariables-DONE</TITLE>
<FONTface="Verdana,Arial,Helvetica,sans-serif"size="2"><B>DynamicallyGenerate
Variables</B></FONT>-DONE<BR>
<BR>
<BR>
<%
variablename=request.form("variablename")
requesttype=request.form("requesttype")
mycounter=0
DoWhilemycounter<how_many
myvaroutput=myvaroutput&variablename&mycounter&"=replace(request."&requesttype&"("&chr
(34)&a</p>SQLServer是基于服务器端的中型的数据库,可以适合大容量数据的应用,在功能上管理上也要比Access要强得多。在处理海量数据的效率,后台开发的灵活性,可扩展性等方面强大。
飘灵儿 该用户已被删除
沙发
发表于 2015-1-20 08:44:37 | 只看该作者
ASP(ActiveServerPages)是Microsfot公司1996年11月推出的WEB应用程序开发技术,它既不是一种程序语言,也不是一种开发工具,而是一种技术框架,不须使用微软的产品就能编写它的代码,能产生和执行动态、交互式、高效率的站占服务器的应用程序。
再见西城 该用户已被删除
板凳
发表于 2015-1-24 16:37:37 | 只看该作者
运用ASP可将VBscript、javascript等脚本语言嵌入到HTML中,便可快速完成网站的应用程序,无需编译,可在服务器端直接执行。容易编写,使用普通的文本编辑器编写,如记事本就可以完成。由脚本在服务器上而不是客户端运行,ASP所使用的脚本语言都在服务端上运行。
不帅 该用户已被删除
地板
发表于 2015-1-29 15:16:07 | 只看该作者
兴趣爱好,那么你无须学编程,申请一个域名和空间,在网上下载一些免费开源的CMS系统,你不用改代码,只须熟悉它们的后台操作,像office一样简单方便,很快就能建一个站点,很多站长都是这样做的
深爱那片海 该用户已被删除
5#
发表于 2015-1-30 23:21:22 | 只看该作者
那么,ASP.Net有哪些改进呢?
因胸联盟 该用户已被删除
6#
发表于 2015-2-6 16:45:06 | 只看该作者
封装性使得代码逻辑清晰,易于管理,并且应用到ASP.Net上就可以使业务逻辑和Html页面分离,这样无论页面原型如何改变,业务逻辑代码都不必做任何改动;继承性和多态性使得代码的可重用性大大提高。
透明 该用户已被删除
7#
发表于 2015-2-17 09:39:24 | 只看该作者
我想问如何掌握学习节奏(先学什么再学什么)最好详细点?
小女巫 该用户已被删除
8#
发表于 2015-3-5 18:58:49 | 只看该作者
另外因为asp需要使用组件,所以了解一点组件的知识(ADODB也是组件)
莫相离 该用户已被删除
9#
发表于 2015-3-12 11:23:25 | 只看该作者
我想问如何掌握学习节奏(先学什么再学什么)最好详细点?
10#
发表于 2015-3-19 21:16:38 | 只看该作者
它可通过内置的组件实现更强大的功能,如使用A-DO可以轻松地访问数据库。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-5-19 11:29

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表