[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Launching URL from code of ASP.NET application

Posted on 2004-10-22
1
Medium Priority
?
126 Views
Last Modified: 2010-04-05
Hello,

I have a button in an ASP.NET application (Delphi 8). When that button is pressed, I want a new window to appear which is directed to a specific website.

Does anyone know how I can code it?

Thanks!

Regards,
Jay
0
Comment
Question by:jaygan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 200 total points
ID: 12387396
Hello

  There's no way to do that with Asp.net, you need to use JavaScript for that

Here's a sample

procedure TWebForm1.Button1_Click(sender: System.Object; e: System.EventArgs);
var
  S : string;
begin
  S := '<script language=javascript> ';
  S := S + 'window.open(''www.google.com'') </script>';
  Response.Write(S);
end;

HTH

Regards,
Mohammed Nasman
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question