Hallo,

irgendwie will mein Programm das Response.Write nicht ausgeben, habe aber keine 
Ahnung warum er nicht in die For-Schleife geht.
Oder darf ich da kein Response.Write schreiben???       

------
Dim Label1 As New Label
...
PlaceHolder1.Controls.Add(Label1)

...
...
...

For Each ctl As Control In PlaceHolder1.Controls
        'Response.Write("0")
        If ctl.GetType Is GetType(Label) Then
            Response.Write("1")
        End If
Next
------



wo anders habe ich schon folgendes verwendet, was super klappt:

------
        For Each ctl As Control In PlaceHolder1.Controls
            If ctl.GetType Is GetType(Label) Then
                Dim label1 As Label = CType(ctl, Label)
                label1.Enabled = False
            End If
        Next
------


Falls jemand weiß, an was da nun wieder unter ASP.NET 1.1 liegen könnte, wäre 
sehr nett.

Gruß
André

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[email protected]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an