Popup window does not work

D

dik

Hi

I have a page with a button that has to open a popup window:

btnPopup.Attributes.Add("onclick", "window.open("popup.aspx",null,'height=250, width=250,status= no, resizable= no, scrollbars=no, toolbar=no,location=no,menubar=no ');");

the error is:could not find page popup.aspx
what could be wrong?

ch Dik

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
E

Eliyahu Goldin

There is no page "popup.aspx" in the directory where the calling page is
located.

Eliyahu

dik said:
Hi

I have a page with a button that has to open a popup window:

btnPopup.Attributes.Add("onclick",
"window.open("popup.aspx",null,'height=250, width=250,status= no, resizable=
no, scrollbars=no, toolbar=no,location=no,menubar=no ');");
the error is:could not find page popup.aspx
what could be wrong?

ch Dik

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...
 
J

Jimmy

ok thanks..

the next problem is, I want to close my popup after the following script:

private void DataGrid1_ItemCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
string tmp = ((LinkButton)e.Item.FindControl("jahoor")).Text;
Session["tmp"] = tmp;


}

The popup window displays a datagrid with some data.. it fills the session
object but I want to close the popup window..
how to do that?

ch Jimmy
 
E

Eliyahu Goldin

Response.Write("<script>window.close();</script>");

Eliyahu

Jimmy said:
ok thanks..

the next problem is, I want to close my popup after the following script:

private void DataGrid1_ItemCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
string tmp = ((LinkButton)e.Item.FindControl("jahoor")).Text;
Session["tmp"] = tmp;


}

The popup window displays a datagrid with some data.. it fills the session
object but I want to close the popup window..
how to do that?

ch Jimmy
Eliyahu Goldin said:
There is no page "popup.aspx" in the directory where the calling page is
located.

Eliyahu


"window.open("popup.aspx",null,'height=250, width=250,status= no, resizable=
no, scrollbars=no, toolbar=no,location=no,menubar=no ');");
ASP.NET resources...
 
J

Jimmy

thanks Eliyahu
Eliyahu Goldin said:
Response.Write("<script>window.close();</script>");

Eliyahu

Jimmy said:
ok thanks..

the next problem is, I want to close my popup after the following script:

private void DataGrid1_ItemCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
string tmp = ((LinkButton)e.Item.FindControl("jahoor")).Text;
Session["tmp"] = tmp;


}

The popup window displays a datagrid with some data.. it fills the session
object but I want to close the popup window..
how to do that?

ch Jimmy
Eliyahu Goldin said:
There is no page "popup.aspx" in the directory where the calling page is
located.

Eliyahu

Hi

I have a page with a button that has to open a popup window:

btnPopup.Attributes.Add("onclick",
"window.open("popup.aspx",null,'height=250, width=250,status= no, resizable=
no, scrollbars=no, toolbar=no,location=no,menubar=no ');");

the error is:could not find page popup.aspx
what could be wrong?

ch Dik

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,008
Latest member
HaroldDark

Latest Threads

Top