Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

ASP.NET Web Forms to MVC

$
0
0

I'm used to make dynamic one or max a few webpages sites with Visual Studio. I use blank website and fill it with HTML, CSS, Javascript on the front and C# on the back, using almost no of the build in asp controls, but using the html tags as server controls inside a form. I have exploring the MVC and I have a few questions about features I need to make the jump:

- What is the proper way of using AJAX to refresh only portion of the page - should I make PartialViews, write jQuery AJAX scripts (may be one with a parameters) and controller actions for every html control I want to refresh the way UpdatePanel works?

- If I want to write a plain HTML inside a such asynchronous portion of the page, should I use Html.Raw() with a Model/ViewBag/ViewData?

- What about using asynchronous portion of the page with injecting Javascript in it?

- Can I post only part of the form asynchronously, without refreshing the values of everything else or I need to use multiple html forms on one page with or without PartialViews so they can't interfere each other?

- Is creating and deleting cookies, using sessions or model properties in the same asynchronous page with different actions the correct way of using global variables for the client's time being on the site?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>