runtime controls
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
i wanna to make all the controls programeticaly in the runtime and handle the events how to make a asp cotrols at runtime plz i wanna help in that
hi, you can add controls in runtime with following code:
void AddTextBox()
{
// create new control
TextBox myTextBox = new TextBox();
// register click event handler
myTextBox.click+=MyPreviouslyDeclaredHandler;
Controls.Add(myTextBox);
}(not tested!) best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)