Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - start a popup window without postback?

 
Thread Tools Search this Thread
Old 04-04-2006, 04:30 PM   #1
Default start a popup window without postback?


Now I has the web button control "help" button which is starting a new window
in clinet side by clicking it. OnClick for the button will start a JavaScrip
which uses window.open() to open help.html page in a new window. It works OK
to open window, but the original window is refreshed when clicking the
button. The reason is the web button control has a postback action (since it
is submit type). My question is:

Can I do this (open help.html) without refreshing the original window?

Thank you for any help.

David


=?Utf-8?B?ZGF2aWQ=?=
  Reply With Quote
Old 04-04-2006, 04:35 PM   #2
Swanand Mokashi
 
Posts: n/a
Default Re: start a popup window without postback?
Does it have to be a server control ? If all it is going is opening a
window, might as well use html button <input type="button">


"david" <> wrote in message
news:A9DD3E82-C801-4CD0-AE31-...
> Now I has the web button control "help" button which is starting a new
> window
> in clinet side by clicking it. OnClick for the button will start a
> JavaScrip
> which uses window.open() to open help.html page in a new window. It works
> OK
> to open window, but the original window is refreshed when clicking the
> button. The reason is the web button control has a postback action (since
> it
> is submit type). My question is:
>
> Can I do this (open help.html) without refreshing the original window?
>
> Thank you for any help.
>
> David





Swanand Mokashi
  Reply With Quote
Old 04-04-2006, 05:08 PM   #3
=?Utf-8?B?ZGF2aWQ=?=
 
Posts: n/a
Default Re: start a popup window without postback?
I just use the button in toolbox in Visual Studio.

David

"Swanand Mokashi" wrote:

> Does it have to be a server control ? If all it is going is opening a
> window, might as well use html button <input type="button">
>
>
> "david" <> wrote in message
> news:A9DD3E82-C801-4CD0-AE31-...
> > Now I has the web button control "help" button which is starting a new
> > window
> > in clinet side by clicking it. OnClick for the button will start a
> > JavaScrip
> > which uses window.open() to open help.html page in a new window. It works
> > OK
> > to open window, but the original window is refreshed when clicking the
> > button. The reason is the web button control has a postback action (since
> > it
> > is submit type). My question is:
> >
> > Can I do this (open help.html) without refreshing the original window?
> >
> > Thank you for any help.
> >
> > David

>
>
>



=?Utf-8?B?ZGF2aWQ=?=
  Reply With Quote
Old 04-04-2006, 05:56 PM   #4
=?Utf-8?B?U3RldmVu?=
 
Posts: n/a
Default Re: start a popup window without postback?
You have used the 'Web Forms' button, this will cause a post back, you need
to use the 'HTML' button. This will solve your problem.

Regards

"david" wrote:

> I just use the button in toolbox in Visual Studio.
>
> David
>
> "Swanand Mokashi" wrote:
>
> > Does it have to be a server control ? If all it is going is opening a
> > window, might as well use html button <input type="button">
> >
> >
> > "david" <> wrote in message
> > news:A9DD3E82-C801-4CD0-AE31-...
> > > Now I has the web button control "help" button which is starting a new
> > > window
> > > in clinet side by clicking it. OnClick for the button will start a
> > > JavaScrip
> > > which uses window.open() to open help.html page in a new window. It works
> > > OK
> > > to open window, but the original window is refreshed when clicking the
> > > button. The reason is the web button control has a postback action (since
> > > it
> > > is submit type). My question is:
> > >
> > > Can I do this (open help.html) without refreshing the original window?
> > >
> > > Thank you for any help.
> > >
> > > David

> >
> >
> >



=?Utf-8?B?U3RldmVu?=
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco 2600 - Inbound NAT translation/Port-forwarding not working Greg Hardware 0 11-20-2008 07:33 PM
How we can get the value of textbox from POpup window in asp.net2.0 with C# gautam2u@gmail.com Software 2 02-07-2008 03:10 AM
new window minimizes to taskbar -D- A+ Certification 0 03-03-2007 01:07 AM
How do I create a popup window in VB.NET? InsideEdge General Help Related Topics 0 10-03-2006 09:21 PM
Popup error message Raymond A+ Certification 1 11-27-2004 03:10 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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