|
-
Jul 5th, 2006, 01:59 AM
#1
Thread Starter
Addicted Member
[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
Women ...r like tea bags, you neva know how strong they really r untill u put them in hot water
Huzefa Yousuf
Software Engineer
Verticity Inc.
+92-345-2235303
[email protected]
-
Jul 5th, 2006, 10:01 AM
#2
Re: [02/03] Place Holder in ASP.NET
Placeholder1.Controls.Add(YourControl)
-
Jul 5th, 2006, 10:02 AM
#3
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';
-
Jul 5th, 2006, 11:32 PM
#4
Thread Starter
Addicted Member
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.
Women ...r like tea bags, you neva know how strong they really r untill u put them in hot water
Huzefa Yousuf
Software Engineer
Verticity Inc.
+92-345-2235303
[email protected]
-
Jul 6th, 2006, 04:34 AM
#5
Re: [02/03] Place Holder in ASP.NET
this.Button1.Attributes.Add("onClick","javascript:alert('see?');");
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|