Come dicevo nella mail precendente il codice che mi consigliate
e cioè:
for each ctl As Object in pannello_consigli.Controls
if ctl.ToString() = "System.Web.UI.WebControls.TextBox"
'Fai quello che vuoi
response.Write(ctl.Text +"
")
end if
next
mettendolo sul mio sito FUNZIONA!!!
MA lo stesso codice, testandolo sul computer in locale (tramite iis)
mi a questo errore:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30451: The name 'ctl' is not declared.
Source Error:
Line 31:
Line 32:
Line 33: for each ctl As Object in pannello_consigli.Controls
Line 34: if ctl.ToString() = "System.Web.UI.WebControls.TextBox"
Line 35: 'Fai quello che vuoi
Cosa succede ragazzi!!!!!!
Grazie

Rispondi quotando