[02/03] Place Holder in ASP.NET
Hi I have few custom web controls in my web application (ASP.NET 1.1). I would like to know that in my web form i want to display a Control dynamically in a place holder. How will i do that ?
Also, to add to this, this control is to be launched in a pop up window. How do i display a popup window on a button's server click and get values back from that popup window
Re: [02/03] Place Holder in ASP.NET
Placeholder1.Controls.Add(YourControl)
Re: [02/03] Place Holder in ASP.NET
To get a window to popup in the button's click event, you'd do
window.open()
It takes several parameters, look this up.
To return values from the popup window, you'd say
window.opener.document.getElementById('somefield').value = 'adkf';
Re: [02/03] Place Holder in ASP.NET
Well both things worked gr8 ! one more question, ryte now I have JavaScript to be called on a Button's click Event, is there a way that i can call it programatically exactly when i want and not to be on some event.
Re: [02/03] Place Holder in ASP.NET
this.Button1.Attributes.Add("onClick","javascript:alert('see?');");