• 0

How would one create a popup window in asp.net


Question

As the title says really. I'm wanting to display another page in an external window using asp.net (VB language)

I can easily get pages to open in the same window using this command:

<asp:Button ID="Button23" runat="server" onclick="Button23_Click" Text="Info" PostBackUrl="~/Project/wifi.aspx" />

The problem is that i am currently on a page where data will be submitted. Every time i leave the page and then go back, the data needs to be resent. So i wanted to make the "wifi.aspx" appear in a popup window.

I've tried searching google. And all i can find is solutions for asp.net using C#, or have it so data can be carried to the popup, and back again Which i dont need).

Cheers.

3 answers to this question

Recommended Posts

  • 0

So really you just need a window to open, via JavaScript... from what I understand, ASP.NET is irrelevant in what you're trying to achieve, as you specifically DON'T want any server-side involvement.

So just use:

<a href="#" onclick="window.open('wifi.aspxreturn false;">Info</a>

Or as a button:

<input type="button" name="infoButton" value="Info" onclick="window.open('wifi.aspx />

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.