<OBJECT CLASSID=clsid:143B3E6F-2C70-4238-85A1-D4F414C792B8 HEIGHT=550 WIDTH=650 CODEBASE= http://219.221.***.***/client/ b#Version=7,50 ID=Object1 VIEWASTEXT><PARAM NAME= DBD VALUE= http://219.221.***.***/C#里字符串要傳的值></OBJECT>這樣把c#中的字符串傳給htm頁面中的object中
熱心網友
不用object,最簡單的方法是用 asp:Label 對應的 span------------------------------------------------------ sub Page_Load(Sender as Object, e as EventArgs) dim str as string str = "this is a string" lbl.Text = str end sub --------------------------------------------------------在html中對應的是this is a string所以要進行客戶端腳本編碼時就用這個
熱心網友
傳的值這樣把c#中的字符串傳給htm頁面中的object中