I have managed to crunch down a several line code to this
For Each gal In galleries
With New HtmlGenericControl("div")
.ID = gal.Header
.Controls.Add(New HtmlImage() With {.Src = "http://p.com/pic.jpg"})
galleryContent.Controls.Add(**Me**)
End With
Next
I cannot find any where how to reference back to the object i am currently working with to add the control back to 'galleryContent' - Using plain me
crashes the whole web server... whooops.
Using does not offer the shorter hand of just using .
- But it Using the only way to do it? I was sersiosly expecting some kind of .Me
or something like this
Any ideas?