Oct 25, 2020
I have record a youtube video and explain, How to create .Net Core Project In Visual Studio Code.
Please watch below video for more details and hope you like it.
Oct 18, 2020
Aug 2, 2020
Aug 1, 2020
Jul 27, 2020
Blazor - Build your first Blazor app
Kalpesh Satasiya 2:02 AM .Net, Blazor, C#, First App No comments
We are going to create first Blazor application using Visual Studio 2019.
- Purpose
- Build your first web app with Blazor.
- Prerequisites
- None
- Time to Complete
- 10-15 minutes
- Scenario
- Create, use, and modify a simple counter component
Please watch below video for detail explanation.
Jul 26, 2020
Blazor - Build client web apps with C#
Kalpesh Satasiya 6:13 PM asp.net, Blazor, Client Side C# No comments
What is Blazor
- Blazor is a free and open-source web framework that enables developers to create web apps using C# and HTML
- Features
1. Interactive web UI with C#
- Blazor lets you build interactive web UIs using C# instead of JavaScript.
2. Run on WebAssembly or the server
- Blazor can run your client-side C# code directly in the browser, using WebAssembly
3. Built on open web standards
- Blazor uses open web standards without plugins or code transpilation. Blazor works in all modern web browsers, including mobile browsers.
4. Share code and libraries
- Blazor apps can use existing .NET libraries.
- .NET Standard allows the same code and libraries to be used on the server, in the browser, or anywhere you write .NET code.
5. JavaScript interop
- Your C# code can easily call JavaScript APIs and libraries. You can continue to use the large ecosystem of JavaScript libraries that exist for client side UI while writing your logic in C#.
6. UI component ecosystem
- Get productive fast with re-usable UI components from top component vendors
You can watch below video for same and explain the details.
View is not updating values in Asp.Net MVC.
Kalpesh Satasiya 4:42 PM Asp.Net MVC, ModelState, ModelState.Clear(), View not updating No comments
Sometime view is not updating values in Asp.Net MVC.
I have recently facing this issues and I thought let me write blog on this topic so it will be helpful to others.
What was happen with me. I had developed a page couple of year ago and it was working fine.
And few days ago I was working on that page and suddenly that page behavior was changed after POST action.
I was tried to save data and return View(model) and also before View(model) there was a some changes on model.
I had debug and check model is updating fine but value is not reflect on View (.cshtml) page.
So I had tried other alternative solutions but it was not work.
Finally got the solution and issue with ModelState.
Before return View written ModelState.Clear() and resolved the issue.
Hope this solution help to you.
I have recently facing this issues and I thought let me write blog on this topic so it will be helpful to others.
What was happen with me. I had developed a page couple of year ago and it was working fine.
And few days ago I was working on that page and suddenly that page behavior was changed after POST action.
I was tried to save data and return View(model) and also before View(model) there was a some changes on model.
I had debug and check model is updating fine but value is not reflect on View (.cshtml) page.
So I had tried other alternative solutions but it was not work.
Finally got the solution and issue with ModelState.
ModelState.Clear(); return View(Model);
Before return View written ModelState.Clear() and resolved the issue.
Hope this solution help to you.
Jul 20, 2020
How to handle large form in Asp.Net Core MVC
Kalpesh Satasiya 12:52 AM Asp Net Core, Asp Net Core MVC, Large Form No comments
How to handle large form in asp.net core MVC application.
It is just a simple configuration on Startup.cs file and there are only two line of code we need to add it.
Please below video for more detail.
It is just a simple configuration on Startup.cs file and there are only two line of code we need to add it.
public void ConfigureServices(IServiceCollection services) { services.Configure(x => x.ValueCountLimit = int.MaxValue); services.AddMvc(options => { options.MaxModelBindingCollectionSize = 1500; }); services.AddControllersWithViews(); }
Please below video for more detail.