M
Morgan Cheng
I tried to add a LoginView control in OnClick eventhandler of a
button.
The code is like below
LoginView login = new LoginView();
PlaceHolder1.Controls.Add(login);
After run the page, I click the button and nothing happens.
If I change LoginView to a Label, it shows.
Why this happens? Should I set some properties to LoginView before add
it to PlaceHolder Control?
button.
The code is like below
LoginView login = new LoginView();
PlaceHolder1.Controls.Add(login);
After run the page, I click the button and nothing happens.
If I change LoginView to a Label, it shows.
Why this happens? Should I set some properties to LoginView before add
it to PlaceHolder Control?