Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Popup window does not work

Reply
Thread Tools

Popup window does not work

 
 
dik@lul.com
Guest
Posts: n/a
 
      06-28-2005
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...
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      06-28-2005
There is no page "popup.aspx" in the directory where the calling page is
located.

Eliyahu

"dik" <> wrote in message
news:...
> 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...


 
Reply With Quote
 
 
 
 
Jimmy
Guest
Posts: n/a
 
      06-28-2005
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" <> wrote in message
news:...
> There is no page "popup.aspx" in the directory where the calling page is
> located.
>
> Eliyahu
>
> "dik" <> wrote in message
> news:...
> > 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...
>
>



 
Reply With Quote
 
Eliyahu Goldin
Guest
Posts: n/a
 
      06-28-2005
Response.Write("<script>window.close();</script>");

Eliyahu

"Jimmy" <> wrote in message
news:uJYcsS%...
> 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" <> wrote in message
> news:...
> > There is no page "popup.aspx" in the directory where the calling page is
> > located.
> >
> > Eliyahu
> >
> > "dik" <> wrote in message
> > news:...
> > > 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...
> >
> >

>
>



 
Reply With Quote
 
Jimmy
Guest
Posts: n/a
 
      06-28-2005
thanks Eliyahu
"Eliyahu Goldin" <> wrote in message
news:ur0U5m#...
> Response.Write("<script>window.close();</script>");
>
> Eliyahu
>
> "Jimmy" <> wrote in message
> news:uJYcsS%...
> > 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" <> wrote in message
> > news:...
> > > There is no page "popup.aspx" in the directory where the calling page

is
> > > located.
> > >
> > > Eliyahu
> > >
> > > "dik" <> wrote in message
> > > news:...
> > > > 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...
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Popup window of ModalPopup does not have scrollbar. zlf ASP .Net 1 10-12-2007 08:28 PM
Popup Window Popup Timing =?Utf-8?B?Sm9obiBXYWxrZXI=?= ASP .Net 3 11-04-2005 07:33 PM
New Popup Window from an existing Popup Window Raffi Javascript 4 08-12-2004 01:21 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM
new popup window does not jump to anchor Daniel Goldman Javascript 1 09-20-2003 01:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57