Hi
that event don't appear in my list of page events.
What do I have to do?
I have another question. How can I open only one popup at a time, ie, when I
click to open one popup, if another is open this one closes.
I have a funtion but only works if it is called by an link and not a button.
I have this in JavaScript:
--------------------- begin java code--------------------------
var popup = null;
//destroy popup if aleady opened
function DestroyWnd ()
{
// close the current window
if(popup != null)
{
popup.close();
popup = null;
}
}
function pick(Src)
{
if((popup == null) || popup.closed)
{
var url = "xpto.aspx?srcA=" + Src
popup = window.open(url, "_blank", "height=200, width=200, left=250,
top=200, " +
"location=no, menubar=no, resizable=no, " +
"scrollbars=no, titlebar=no, toolbar=no", true);
}
else
{
DestroyWnd();
pick(Src);
}
}
--------------------- end java code--------------------------
In my page_load i Have this
--------------------- begin vb code--------------------------
Sub Page_Load(...)
...
Button1.Attributes.Add("OnClick","pick('textbox1');")
...
End Sub
--------------------- end vb code--------------------------