A
Andrea Moro
I must to be honest. It's many years that I don't develop
with ASP, but the basic are the same, and VB.NET programming
isn't so much different from ASP.NET ... so the hardest thing
is understand why something that should work ... it doesn't.
For instance I'm looking for a solution that let me to add
web controls to a form at run time, just to have small
routine to build the form according to certain parameters.
I build a simplest routine
Sub WriteForm
Dim x as new textbox
x.id = "abc"
x.maxlength = 10
page.controls.add(x)
End Sub
I place a <% WriteForm %> inside a <form runat="server" ....
html code ... but when I go in debug ... my textbox doesn't appear.
It seems to be right ... no run-time error appear, but also no
textbox.
Previous test case like response.write("<asp:texbox ... etc.
doesn't work as well.
What's the matter?
Thanks
Andrea
with ASP, but the basic are the same, and VB.NET programming
isn't so much different from ASP.NET ... so the hardest thing
is understand why something that should work ... it doesn't.
For instance I'm looking for a solution that let me to add
web controls to a form at run time, just to have small
routine to build the form according to certain parameters.
I build a simplest routine
Sub WriteForm
Dim x as new textbox
x.id = "abc"
x.maxlength = 10
page.controls.add(x)
End Sub
I place a <% WriteForm %> inside a <form runat="server" ....
html code ... but when I go in debug ... my textbox doesn't appear.
It seems to be right ... no run-time error appear, but also no
textbox.
Previous test case like response.write("<asp:texbox ... etc.
doesn't work as well.
What's the matter?
Thanks
Andrea