Hi there,
This will never work. The code you posted looks too much like classic ASP where you use Response.Write to send out *HTML* to the browser.
However, ASP.NET Controls like the text box are server side controls that are capable of sending HTML to the browser. If, instead, you send the ASPX markup of such a control to the client, all you get there is the flat text, like <asp:Button> instead of a true control.
You need to rethink your strategy a little. You don't need Response.Write anymore, but instead you need to New up a control and add it to the page or another control:
Code:
Dim myTextBox As new TextBox()
myTextBox.ID = "SomeControlId"
myTextBox.Text = "Hello World"
myPlaceHolder.Cotrols.Add(myTextBox)
This code assumes you have an <asp:PlaceHolder> control called myPlaceHolder on the page somewhere.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to:
Catherine by
P.J. Harvey (Track 6 from the album:
Is This Desire?)
What's This?