VenShop新版网店系统发布,支持电脑版 + 手机版 + APP + 微店

极致搜索引擎优化,自动推送百度 对接微信公众号,支持微信支付/支付宝/银联收款 短信验证码/通知功能,实时物流跟踪功能 老用户享受7折/买二送一等活动

付款方式 | 联系方式 | 网站地图 | 客服热线:17091006015


:783940、729220
技术中心
6个ASP基础问题 作者:shnxn  网站:凡人网络
A:1.如何判断用户输入的是一串空格?空格的长度不确定。

2.如何使某一个页面停留一会儿,自动转到另一个页面?

3.如何用不同的按钮将<FORM>和</form>之间的控件的信息传递到不同的页面?

4.如何弹出一个新窗口来显示一个新的页面,但不要弹出确认窗口之类的对话框?

5.如何在删除(或修改)数据前弹出一个对话框,用于用户是否确认,当用户点"确认"按钮时,执行删除动作,当点"取消"按钮时则不做任何动作?

6.当程序执行到response.redirect"abc.asp"语句时,在该语句后面的语句是否会被执行?

Q1:
1. Trim("Text") = ""
2. <meta content=100;url=main.asp http-equiv=refresh>
3.
function send1()
{
document.form_query.action="a.asp";
document.form_query.submit();
}
function send2()
{
document.form_query.action="b.asp";
document.form_query.submit();
}
不同的按钮触发不同的事件
4.不太明白你的意思,但给你一个打开窗口的函数
function openwindow(url, winName, width, height)
{
xposition = (screen.width - width) / 2;
yposition = (screen.height - height) / 2 - 50;
theproperty = "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=1," + "scrollbars=1," + "status=0," + "titlebar=0," + "toolbar=0," + "hotkeys=0," + "left=" + xposition + "," + "top=" + yposition;
window.open(url,winName,theproperty );
}
5.
<input type='button' value=' 删除 ' name='Bt_Del' onclick="javascript:if(confirm('删除?')===true) Fmdelete(); else return false;">
6.不会

Q2:
1.if trim(request("inputName"))='' then

2.<script language="javascript">setTimeout('nextUrl.asp',1000);//1000为一秒</script>

3.<script language="javascript">
function goSend(v)
{if (1==v) {document.form1.action='save1.asp'; document.form1.submit();}
if (2==v) {document.form1.action='save2.asp'; document.form1.submit();}
if (3==v) {document.form1.action='save3.asp'; document.form1.submit();}
}

<form name=form1 ><input type="submit" value="1" onclick="goSend(1)">
<input type="submit" value="1" onclick="goSend(2)">
<input type="submit" value="1" onclick="goSend(3)">
</form>

4<script language="javascript">
window.open(url,name);
</script>
5.....


转载请注明出自:凡人网络VenShop.Com
发现内容有误 / 侵犯您的版权 ↑相关文章:

关于我们 | 汇款方式 | 建站流程 | 联系方法 | 常见问题 | 新闻公告 | 加入收藏 | 留言本站

客服热线:022-85194902 邮箱:fuwu@venshop.com
®天津盈商科技有限公司版权所有 Powered By :TianJin YingShang KeJi Co.,Ltd.
软件著作权证书登记号:2006SRBJ0621   软著登字第BJ4429号
津ICP备17001798号
Copyright © 2002-2021 VENSHOP.COM. All Rights Reserved.