Groups | Blog | Home
all groups > dotnet faqs > november 2005 >

dotnet faqs : coding pop up boxes in ASP.Net


Srimadhi
11/17/2005 11:50:01 AM
I need to display a pop-up box with a drop down list and a text box, with ok
and cancel button when the user clicks on a image button. I am using webforms
in ASP.NET with code-behind files in C#.
Sreejith Ram
11/17/2005 12:18:18 PM
Step 1) Create an aspx page with drop down list , text box an buttons (say
popup.aspx)
2) From the c# of parent page add a client event handler to image button
imgButton1.Attributes.Add("onclick","window.open('popup.aspx')");

More reading :
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/open_0.asp

http://aspnet.4guysfromrolla.com/articles/021104-1.aspx



does this help?

[quoted text, click to view]
Srimadhi
11/18/2005 12:31:07 PM
Hi Sreejith Ram,

This code opens up a new page. I just want to be on the same form and pop-up
a box for the dropdown list and textbox.

[quoted text, click to view]
S.M. Altaf [MVP]
11/25/2005 12:00:00 AM
That's what Sreejith's given you. window.open is used to create a popup
window.

I have a feeling your definition of popup is what you need to explain to us.
Are you looking to toggle the visibility of a dropdown?


--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com


[quoted text, click to view]

AddThis Social Bookmark Button