ASP.NET button that calls another webform in a pop-up --- please help!!

  • Thread starter Thread starter almurph
  • Start date Start date
A

almurph

Hi everyone,


I have an APS.NET (v1.1) type button on a webform page. What I want
it to do is when the user clicks it, it then calls another webform
page that appears in a pop-up window.
Now I know that the button has an "onclick" attribute but that's as
far as I get. I guess you need some Javascript and something in the
code behind file (which for me is VB.NET) but I don't know what.

Can anyone out there help me please? I would appreciate any code-
samples/suggestions/comments that anyone has to offer. Any advice much
appreciated...

Thanks,
Al.
 
Hi everyone,

I have an APS.NET (v1.1) type button on a webform page. What I want
it to do is when the user clicks it, it then calls another webform
page that appears in a pop-up window.
Now I know that the button has an "onclick" attribute but that's as
far as I get. I guess you need some Javascript and something in the
code behind file (which for me is VB.NET) but I don't know what.

Can anyone out there help me please? I would appreciate any code-
samples/suggestions/comments that anyone has to offer. Any advice much
appreciated...

Thanks,
Al.

I don't think you need to use an asp control or server side code for
this - you can do it with straight html and javascript:

<button onclick="javascript:window.open('http://
www.google.com');">Click Me!</button>

Should work. Google "javascript window open" for more details on that
method. You might also considering using a script block instead of
inline javascript.

Thanks,

Seth Rowe
 
Hi everyone,


I have an APS.NET (v1.1) type button on a webform page. What I want
it to do is when the user clicks it, it then calls another webform
page that appears in a pop-up window.
Now I know that the button has an "onclick" attribute but that's as
far as I get. I guess you need some Javascript and something in the
code behind file (which for me is VB.NET) but I don't know what.

Can anyone out there help me please? I would appreciate any code-
samples/suggestions/comments that anyone has to offer. Any advice much
appreciated...

http://www.ondotnet.com/pub/a/dotnet/2003/09/15/aspnet.html
http://www.codeproject.com/aspnet/asppopup.asp

If you want examples of how to do things, then Code Project or CodeGuru is
where you need to go.
 
Back
Top