Re: [問題] web控制項去控制HTML控制項

看板Web_Design作者 (cjoe)時間19年前 (2006/05/01 01:09), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串5/5 (看更多)
※ 引述《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

05/01 01:35, , 1F
太感謝了~~
05/01 01:35, 1F
文章代碼(AID): #14LEz829 (Web_Design)
文章代碼(AID): #14LEz829 (Web_Design)