Call ASPX Page From Windows Application in C#


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

Up Next
    Ebook Download
    View all
    Learn
    View all