How to create a single webpage that does simple calculations? With Visual Studio?

Mark Elfield 1 Reputation point
2022-06-08T19:28:01.127+00:00

My only experience with Visual Studio (Community 2022) was to develop a C++ Windows UI application using the built-in forms designer. It worked well; the main difficulty was learning the Visual Studio project options needed to get started.

Now, unrelated, I'd like to use Visual Studio to create a single webpage that: (1) presents a form prompting for numeric values, (2) performs simple arithmetic using those values, and (3) displays several results on the same page.

No server side programming. I just want the page to work in a browser.

I think Visual Studio can do this, but the project options are bewildering!

As I don't know HTML, I'd like to create the page via a forms designer -- and use an easy language (JavaScript?) for the calculations.

So I'd appreciate learning if Visual Studio is an appropriate tool, and what options need to be selected to get started.

Thank you.

Developer technologies | ASP.NET | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,101 Reputation points
    2022-06-09T02:20:36.33+00:00

    Hi @Mark Elfield ,
    If you want to use webform, I suggest you install web form library firstly. You could select "create webform page in asp.net visual studio" in the browser and you could find the video about installing and creating webform.
    About the javascript, you could follow the Javascript.com.

    Best regards,
    Yijing Sun


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.