asp:TextBox的ClientID为什么和页面生成时的不一样?
JScript code:
alert('<%=txtorderTime.ClientID %>');
用这样的方法取出来的ID是这样的:ctl00_ContentHeadBottom_txtorderTime
但是查看源文件的时候,这个input的id变成这样了:ctl00$ContentHeadBottom$txtorderTime
JScript code:
document.getElementById('<%=txtorderTime.ClientID %>').onclick = "alert('abc')";
这样在页面上单文本框时,也不会弹出揭示
这是怎么回事啊,要怎么解决呢???
服务器控件的 ID,ClientID,UniqueID 的区别
ClientID取得是控件客户端ID,没有编辑前的、
估计你看错了,
id是ctl00_ContentHeadBottom_txtorderTime
name是ctl00$ContentHeadBottom$txtorderTime
估计你看错了,
id是ctl00_ContentHeadBottom_txtorderTime
name是ctl00$ContentHeadB
相关问答:
有一个类
class adc
{
dim a,b,c
}
如何在另外一个类中取得类成员及成员个数
class getmenber
{
dim menbers()
function getmenbers(resclass)
'res为一未知类
'getmenber ......
function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
本人不会asp,报错了,请大家帮忙看看。
代码如下:
<%
dim keyword_Name,keyword_YJ,keyword_RQ
if rs("QS_PASS_1_name")<>"0,0" then
keyword_Name=split(rs("QS_ ......
protected void btnLogin_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection("Server = (local);user id = sa;pwd = 1;database = Login");
&nb ......
问题是这样的,现在有一个工资表,是EXCEL的,我要把它导入ACCESS,因为 要查询每个人的工资,根据不同的编号可以查询到相对的人,
用ASP 怎么将EXCEL导入到ACCESS,而且每月都有不同的表,
引用
其实就是把EXCEL当成数 ......