Building Complex forms in ASP.NET for standard html5 websites? RRS feed

  • Question

  • User-1530491735 posted


    I work on a number of website that all use html, CSS and JS files.  We have been using third party form building for simple contact forms. I am wondering if using ASP.NET Web Form structure would work and if it's a common combination when dealing with more complex forms. 

    I would like to create more complex form data that auto calculates once submitted. 

    For example, a moving company website form that has an inventory list section which will need to be filled out and then once submitted will provide the business an estimated size of the load dependant on the data entered into the form. 

    Thank you in advance


    Monday, April 20, 2020 8:58 AM

All replies

  • User409696431 posted

    You can certainly do that.  You would need to do the calculations in code-behind based on the values the form posts.

    Do you already know Asp.Net Web Forms?  If not, there is a definite learning curve for the Web Form controls themselves, how to post information and handle it in code-behind, how to style the pages (extra knowledge is needed if your site is responsive and the form needs to rearrange itself as the view port changes) and of course learning a language for the code behind pages (C# is popular).

    Monday, April 20, 2020 9:41 AM
  • User-18289217 posted

    Of course you can use .NET for that. At  the end once you submit the form and read the entries (data) you use C# to calculate whatever you want. 

    Please be more specific and we will help you to understand how it works actually 

    Monday, April 20, 2020 9:43 AM
  • User-1530491735 posted

    I am new to Asp.Net and am looking into some courses. I found one on Pluralsight so far web forms. I guess my question would be is this a popular way of creating complex forms or should I maybe look into another type of form building process? 

    At this point I am just trying to work out the best way to do this. 

    Monday, April 20, 2020 9:49 AM
  • User-1530491735 posted

    Thank you, I am looking at doing some online course now learning the fundamentals of Asp.NET web forms. I have found a course on Pluralsight. 

    Monday, April 20, 2020 9:51 AM
  • User-18289217 posted

    You may want to check  some courses on ASP.NET Core or even better Blazor. These are newer technologies with a better support around. WebForms is kinda overdated though it  works equally good but the other ones obviously have better promoters ;) 

    Monday, April 20, 2020 9:59 AM
  • User1535942433 posted

    Hi NickWebNet,

    Accroding to your description,as far as I think,there are advantages and disadvantages about webform.If you want to create a small project about complex forms and have some simple operation,you could use webform.

    Advantages of Web Forms:

    • ViewState - A ViewState that allows you to persist objects and values throughout your application.
    • Rapid Application Development - Very little learning curve, user-friendly and easy to get an application up and running quickly.
    • Controls and Toolbox - A huge Toolbox with basically any major Control that you would need for developing applications.
    • Code Generation - Web Forms makes it quite a bit easier to not worry about wiring up different events and methods as much of this can be handled automatically.

    Disadvantages of Web Forms:

    It's old.Currently popular  courses are mvc and Blazor.

    Best regards,

    Yijing Sun

    Tuesday, April 21, 2020 6:43 AM
  • User-1530491735 posted

    Thank you all. I have decided to learn through Blazor on Pluralsight. 

    Tuesday, April 21, 2020 11:13 AM