This is blog by the developer and for the developer.I am creating this blog for help the people to learn from basic to advance level concepts in technology world.
Test Post from Sagar Jaybhay
Get link
Facebook
X
Pinterest
Email
Other Apps
Test Post from Sagar Jaybhay https://sagarjaybhay.net
In this article we will understand How to delete data using Post request in Asp.Net MVC? and How to add Confirmation alert box on button click in Asp.Net MVC by Sagar Jaybhay . Always remember if you want to delete data from the database use Post request. Never use Get request for deleting resources on a database. Because if you have to get a call to delete data from the database and any hacker or some malicious user got your Get URL then he can delete your data. Also, google try to index your page as an SEO point view so if you issue get request then it’s not good practice to delete data using Get so always use Post request to delete data. In our application see below image we use action link to delete Employee from a database but this will issue a get request to avoid this we need to use the button for post-call and this we need to use Form control in our application so we rap our application inside form and issues a Post call for delete. To create button control here code is ...
In this article you will understand importance of mainly used terms in Angular 9 by Sagar Jaybhay . You will understand Components, Modules, How angular 9 works? Angular 9 Angular is binding frameworks . It helps us to bind view and model. In angular, you can have multiple apps inside the src folder. Components In angular, the binding code which binds the UI means our Html and Model is component. Here Component is the part of angular, which receives data from the UI and Sends data back to UI. In an enterprise application, you can have a lot of views, lots of components and lots of models. Modules If you collect different component and group them into one repo is called modules and these component are generally belong to the same modules In by default angular generated boilerplate code which doesn’t contain model but as per requirement we want that and we created in our application. The naming convention for this is app.model.ts . Component In Details In Angular 9: Below is...
In this article, we will learn about How Angular 9 knows which module is the startup module and which is not ? Also, we will understand Which conventions Angular team Uses by Sagar Jaybhay . Which One is the startup Module? This is mentioned in the main.ts file and below is coed for this file. import enableProdMode from '@angular/core'; import platformBrowserDynamic from '@angular/platform-browser-dynamic'; import AppModule from './app/app.module'; import environment from './environments/environment'; if (environment.production) enableProdMode(); platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); platformBrowserDynamic is used to a bootstrap module. This used to set the first module. But another question is ..... How main.ts file is invoked in an angular application? The main.ts file is invoked by index.html file. But if you see the index.html file code we didn’t find any kind of script invocation code because t...
Comments
Post a Comment