作者cjoe (cjoe)
看板Web_Design
标题Re: [问题] web控制项去控制HTML控制项
时间Mon May 1 01:12:45 2006
※ 引述《danceric (蜥蝪)》之铭言:
: ※ 引述《helpers (<帮助人>)》之铭言:
: : <form name="form1">
: : <input type="button" name="h" value=h disabled>
: : <input type="button" name="b" value=b onclick="document.form1.h.disabled=false">
: : </form>
: 这边我有一点问题耶~
: 因为我的b button是web控制项
: <asp:imagebutton id="edit" tabIndex="10" runat="server"
: ImageUrl="image/Edit.jpg" ToolTip="修改"
: BorderStyle="Outset" BorderWidth="2px"></asp:imagebutton>
: 它在html里面是长这样的..
: 如果我在里面加上onclick="document.form1.h.disabled=false"
: 会有document非我档案中成员的错误~
: 这样该怎麽办才好~~@@?
Sub Page_load(ByVal sender As Object, ByVal e As EventArgs)
edit.Attributes.Add("onclick", "document.form1.h.disabled=false")
End Sub
试试看吧
--
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.171.105.197
1F:推 danceric:太感谢了~~ 05/01 01:35