[問題] ASP.NET裡,用C#如何接FindControl()?

看板Web_Design作者 (Yen-Sheng Chang)時間18年前 (2006/03/30 10:04), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
請問一下:下面這段VB程式碼如何改成C#呢? Dim webForm As Object webForm = Me.FindControl("Form1") webForm.Attributes("onsubmit") = "return(confirm('Are you sure?'));" 我不知道該怎麼改的是webForm的資料型態在C#要改成什麼呢? 不勝感激~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.125.92

03/30 16:33, , 1F
Control myControl1 = FindControl("Form1");
03/30 16:33, 1F
文章代碼(AID): #14App4RB (Web_Design)