[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Hak

12/31/2002 5:02:00 PM

Hi.

I have created a composite control that consists of a
label, a textbox, a required field validator, and a image
button.

I added a property to have an URL address.
When the user clicks on the imagebutton, I want the page
to load the page specified in the URL address.

To do this, I added an event and I am using
Response.Redirect method. However, I would like to load
the page on a separate page. What should I do?????

Thank you
Hak

1 Answer

John Mims

1/3/2003 8:17:00 PM

0

I use the button.Attribute.add method in the PageLoad that calls
javascript's window.open. Here is an example:

butName.Attributes.Add("onclick", "window.open('YourURL', 'poppage',
'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1,
resizable=1, width=600, height=400, left = 100, top = 100');")


"Hak" <hak-kyoo.kim@servTrac.net> wrote in message
news:03b301c2b0e6$0903b600$89f82ecf@TK2MSFTNGXA01...
> Hi.
>
> I have created a composite control that consists of a
> label, a textbox, a required field validator, and a image
> button.
>
> I added a property to have an URL address.
> When the user clicks on the imagebutton, I want the page
> to load the page specified in the URL address.
>
> To do this, I added an event and I am using
> Response.Redirect method. However, I would like to load
> the page on a separate page. What should I do?????
>
> Thank you
> Hak
>