怎么让这个东西的值 发送到 asp里面去啊

kinghost80 2002-08-02 10:34:59
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>asp</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type><LINK
href="asp.files/css.css" rel=stylesheet>


<META content="MSHTML 5.00.2614.3500" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 onload="" topMargin=0>
<object classid="clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1" id="DTPicker2" width="89" height="20">
<param name="_ExtentX" value="2355">
<param name="_ExtentY" value="529">
<param name="_Version" value="393216">
<param name="MousePointer" value="0">
<param name="Enabled" value="1">
<param name="OLEDropMode" value="0">
<param name="CalendarBackColor" value="-2147483643">
<param name="CalendarForeColor" value="-2147483630">
<param name="CalendarTitleBackColor" value="-2147483633">
<param name="CalendarTitleForeColor" value="-2147483630">
<param name="CalendarTrailingForeColor" value="-2147483631">
<param name="CheckBox" value="0">
<param name="CustomFormat" value>
<param name="DateIsNull" value="0">
<param name="Format" value="662831105">
<param name="UpDown" value="0">
<param name="CurrentDate" value="37470">
<param name="MaxDate" value="40543">
<param name="MinDate" value="36526">
<param name="Value" value >
</object>
</BODY></HTML>
...全文
5 点赞 收藏 3
写回复
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
七伤拳 2002-08-02
直接在ASP页面里面求值就行了。
date1 = Request.Form("dt")

客户端脚本里面用 document.all.dt.value 属性取值
回复
qiushuiwuhen 2002-08-02
id="DTPicker2"
=>
name="dtp"

即可提交
回复
JavaCoffee 2002-08-02
我给你写了一个例子,你来看看:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>asp</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<LINK href="asp.files/css.css" rel=stylesheet>

<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<script language="javascript">
function dtvalue()
{
var dt,dtStr;
dt=new Date(document.all.dt.Value);
dtStr=dt.toLocaleString();
alert(dtStr);
}
function frmsubmit()
{
var dt,dtStr;
dt=new Date(document.all.dt.Value);
dtStr=dt.toLocaleString();
document.frmtest.action="test.asp?dtvalue=" + dtStr;
document.frmtest.submit();
}
</script>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 onload="" topMargin=0>
<form method="POST" action="你要提交的页面" name="frmtest">
<object classid="clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1" id="dt" width="107" height="20" onchange="alert(this.value);">
<param name="_ExtentX" value="2831">
<param name="_ExtentY" value="529">
<param name="_Version" value="393216">
<param name="MousePointer" value="0">
<param name="Enabled" value="1">
<param name="OLEDropMode" value="0">
<param name="CalendarBackColor" value="-2147483643">
<param name="CalendarForeColor" value="-2147483630">
<param name="CalendarTitleBackColor" value="-2147483633">
<param name="CalendarTitleForeColor" value="-2147483630">
<param name="CalendarTrailingForeColor" value="-2147483631">
<param name="CheckBox" value="0">
<param name="CustomFormat" value>
<param name="DateIsNull" value="0">
<param name="Format" value="662831105">
<param name="UpDown" value="0">
<param name="CurrentDate" value="37470">
<param name="MaxDate" value="40543">
<param name="MinDate" value="36526">
</object>
<hr>
<p>
<input type="button" value="查看选择的日期" name="B3" onclick="dtvalue()">
<input type="button" value="提交选择的日期" name="B4" onclick="frmsubmit()"></p>
</form>
</BODY></HTML>
回复
发动态
发帖子
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
社区公告
暂无公告