Reader Level:
Articles

Call ASPX Page From Windows Application in C#

By Priti Kumari on January 06, 2014
In this article I will explain how to open and start a web page (.aspx page ) from a Window application in C#.
  • 1
  • 0
  • 7490


In this article I will explain how to open and start a web page (.aspx page ) from a Window application in C#.

Step 1: Initially create new window based project.

Execute Visual Studio then go to "File" -> "New" -> "Project..." then select "Windows" -> "Windows Forms application".

Create new window

Step 2: Design your form: drag a button onto your form.

Design your Form

Step 3: Add this namespace to the top your application code.

Add this name space

Step 4: Write this code for the button Click event; here you can provide the web page URL.

web page URL

Step 5: Then run you application and click on the button and see the output.

run you application

Output

This is my web page.

Output

Priti Kumari

.Net developer at MNC India.Experience  in Asp.Net,Window Application c# ,SQL Server. 

COMMENT USING

Trending up