By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,287 Members | 1,561 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,287 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.

Jul 6 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Jul 6, 1:37 pm, "almu...@altavista.com" <almu...@altavista.com>
wrote:
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

Jul 6 '07 #2

P: n/a

<al*****@altavista.comwrote in message
news:11**********************@n2g2000hse.googlegro ups.com...
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...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.
Jul 6 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.