
May 20th, 2002, 11:39 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
value of string type cannot be converted to system.web.ui.webcontrols.label
<i><b>Originally posted by : andy (andy_tsai@rocketmail.com)</b></i><br />it works when I try to write this:<br /><br />Protected WithEvents Label1 As System.Web.UI.WebControls.Label<br />Dim aaa As WebControls.Label = Label1<br />aaa.Text = "ntohgin"<br /><br />but not:<br /><br />Dim svar As String = "label1"<br />Dim aaa As WebControls.Label = svar<br />aaa.Text = "ntohgin"<br /><br />can anybody help me? i must use string variable to convert to webcontrols.label variable because I have too many labels. thank you
|