popup window
-
I have a asp hyperlink control with its target property set as _blank. So, whenever the link is clicked the target page is opening in a new popup window. This is fine till now. But now I want to set the background color of this new window and still want to use asp hyperlink control. How can I achive this. Please help. Thanks in advance.:cool: I am a Software Developer using C# on ASP.NET.
-
I have a asp hyperlink control with its target property set as _blank. So, whenever the link is clicked the target page is opening in a new popup window. This is fine till now. But now I want to set the background color of this new window and still want to use asp hyperlink control. How can I achive this. Please help. Thanks in advance.:cool: I am a Software Developer using C# on ASP.NET.
A hyperlink doesn't have access to change any properties on the page being opened directly. If you want that page to always have a certain background color, just edit the second page to have the color you want. If you need to change the color depending on how it's opened, you could have a QueryString parameter, and pass that in. For instance, have your hyperlink refer to: page2.aspx?bgcolor=pink Hope that helps, Datagrid Girl