我要传<input type="text" name="time_spent"...的值
又要传<asp:textbox id="question_title"...的值<input type="text" id="time_spent" name="time_spent" size=7 onFocus="this.blur()">
写在<form enctype="multipart/form-data" runat="server">
里面不能显示,
现在写在<form name="form1">
里面可以显示,
但是现在的问题是:我该怎么把
<input type="text" id="time_spent" name="time_spent" size=7 onFocus="this.blur()">
的值传到CS里面去啊?<%@ Page Inherits="www.MyCodeBehind" Src="speak.cs"%>
<HTML>
<HEAD>
<TITLE>我要發言</TITLE><script language="java-script">
<!--
function GetLocalIPAddress()
{
var obj = null;
var rslt = "";
try
{
obj = new ActiveXObject("rcbdyctl.Setting");
rslt = obj.GetIPAddress;
obj = null;
}catch(e)
{
}
document.form1.time_spent.value=rslt;
return rslt;
}
//-->
</script></HEAD><BODY onload="GetLocalIPAddress()"><form name="form1"><input type="text" id="time_spent" name="time_spent" size=7 onFocus="this.blur()"></form><form enctype="multipart/form-data" runat="server"><asp:textbox id="question_title" width="100%" runat="server" style="font-family:verdana;font-size:8pt;border:1px #DDE3EC solid"/><input type="button" id="Button1" value="確定" OnServerClick="Button1_Click" runat="server"></form></BODY>
</HTML>
又要传<asp:textbox id="question_title"...的值<input type="text" id="time_spent" name="time_spent" size=7 onFocus="this.blur()">
写在<form enctype="multipart/form-data" runat="server">
里面不能显示,
现在写在<form name="form1">
里面可以显示,
但是现在的问题是:我该怎么把
<input type="text" id="time_spent" name="time_spent" size=7 onFocus="this.blur()">
的值传到CS里面去啊?<%@ Page Inherits="www.MyCodeBehind" Src="speak.cs"%>
<HTML>
<HEAD>
<TITLE>我要發言</TITLE><script language="java-script">
<!--
function GetLocalIPAddress()
{
var obj = null;
var rslt = "";
try
{
obj = new ActiveXObject("rcbdyctl.Setting");
rslt = obj.GetIPAddress;
obj = null;
}catch(e)
{
}
document.form1.time_spent.value=rslt;
return rslt;
}
//-->
</script></HEAD><BODY onload="GetLocalIPAddress()"><form name="form1"><input type="text" id="time_spent" name="time_spent" size=7 onFocus="this.blur()"></form><form enctype="multipart/form-data" runat="server"><asp:textbox id="question_title" width="100%" runat="server" style="font-family:verdana;font-size:8pt;border:1px #DDE3EC solid"/><input type="button" id="Button1" value="確定" OnServerClick="Button1_Click" runat="server"></form></BODY>
</HTML>
解决方案 »
- js问题在线等,希望速度
- 前后台登录能统一成一个接口吗?
- ASP.NET 2.0中怎么让布局表格居中啊
- 【AAAAA】网页中的效果,让一些网页内的层或HTML标签跟随浏览器动,以及浏览器向下时才显出的层
- 下载的ajaxchatroom为什么改不了?
- 100分 就绑定数据,然后在表中按自己想显示的格式显示其中的内容
- 新建NET----C#技术交流群,群号:31442848 欢迎大家加入一起交流、提高
- 如何JS实现页面自动刷新,求代码?
- 在DataGrid中怎么让"1974-9-1 0:00:00"这样的数据显示为"1974-9-1"?
- 请问深圳朋友.现在3月5号软件公司还没有正式招聘面试吗?
- 本人做了一个WEB系统,现在怎么记下客户登陆的本地真实IP? 而不是127.0.0.1,也不是服务器上的IP
- 能不能修改代码后让打开这个ASPX页面就自动把数据显示在TEXTBOX里?
但是:
Request.Form["time_spent"]的值不能传到CS里面去
的就要用到Ajax了