Free Code Snippets in C#, Net Framework, Office 365, ASP.Net,WPF, Visual Studio, SQL Server, Antivirus free
#
🚩#23 ASP.Net: Add Web API Controller Net-Framework/ASP_dot_Net-Core/Learning
🚩#23 ASP.Net: Add Web API Controller
09.01.2018 223
If you need an external interface of devices to a web application, then you add an API controller to the web application, which then devices such as mobile phones, IoT devices, WPF desktop applications and other apps can exchange data directly The easiest way to create

🚩#11 Create and Connect a database to ASP.Net MVC Core 2 Net-Framework/ASP_dot_Net-Core/Learning
🚩#11 Create and Connect a database to ASP.Net MVC Core 2
09.01.2018 549
Connect database to ASP Net Core 2 Step 1: Create a database without migration You can either create a database via CodeFirst under ASP Net Core or Code-First Codefirst uses Entitiy Framework Migration At Codefirst, the database is c

🚩# 23 ASP.Net: Adjust Validation Net-Framework/ASP_dot_Net-Core/Learning
🚩# 23 ASP.Net: Adjust Validation
22.12.2017 212
# 23 ASP Net: Adjust Validation Colorize the validation If you want to adjust the validity when entering an Asp Net MVC form, then you can evaluate an element like here the textbox element in the browser with Examine First, open the view form (h

🚩#22 ASP.Net: Validation, validity Net-Framework/ASP_dot_Net-Core/Learning
🚩#22 ASP.Net: Validation, validity
15.12.2017 202
ASP Net MVC Core 2 Check for validity when entering data Set validation The foundations for validity are defined in the model [MaxLength(50)]

🚩#21 ASP.Net: Update Data, Save Edit View Net-Framework/ASP_dot_Net-Core/Learning
🚩#21 ASP.Net: Update Data, Save Edit View
15.12.2017 233
The following example creates changes the Create form into an edit form for articles Here, the View Edit is used as an input form to create new records, but also as a pure update input form Open the view The view form is either

# 20 Bind form data and attach to database Net-Framework/ASP_dot_Net-Core/Learning
# 20 Bind form data and attach to database
13.12.2017 189
- Model binding, bind form to data model, data binding - Attach data from MVC Model to SQL Server In the input form, sends the data to the create action of the controller of the same name All input data is transferred as form data

ASP.Net Core MVC: Insert dropdown list Net-Framework/ASP_dot_Net-Core/Learning
ASP.Net Core MVC: Insert dropdown list
12.12.2017 604
This code example shows how to display a dropdown list in ASP Net Core MVC Specification: In the connected database, there is a small table with selection texts with the name tblBase_Product groups The selection table has an ID and

ASP.Net: adapt the label Net-Framework/ASP_dot_Net-Core/Learning
ASP.Net: adapt the label
11.12.2017 150
If you want to customize the automatic label of an MVC field, then specify a DisplayAttribute in the form [Display (Name = abc)] [Display(Name = "Artikel Bezeichnung" )]

#17 ASP MVC: New form for creating an entry Net-Framework/ASP_dot_Net-Core/Learning
#17 ASP MVC: New form for creating an entry
11.12.2017 156
The controller creates a new action method called New public IActionResult New() {

EF: Specify default values ​​and Type Double and Bool from ASP.Net Model to SQL Server Net-Framework/ASP_dot_Net-Core/Learning
EF: Specify default values ​​and Type Double and Bool from ASP.Net Model to SQL Server
08.12.2017 302
In ASP Net Core MVC conversion from CodeFirst to SQL Server databases, the variables must be of the correct type to be set correctly on SQL Server How does the ASP Net C # Model boolean and currency fields connect to fields in SQL Server

#16 ASP.Net MVC: Eager Loading Include Data Net-Framework/ASP_dot_Net-Core/Learning
#16 ASP.Net MVC: Eager Loading Include Data
07.12.2017 180
If you want to display data from a linked table in a view view, then you use the so-called Eager loading The following is done in the view If, for example, you want to know the name of the assigned product groups in the follo

#15 ASP.Net Core MVC: View data tables on web page with MVC Net-Framework/ASP_dot_Net-Core/Learning
#15 ASP.Net Core MVC: View data tables on web page with MVC
06.12.2017 219
How To Display Data From A SQL Server On An ASP Net MVC Core 2 Website 1) Assign DbContext You have to extend the database model with OnModelCreating, which allows you to view the tables in the SQL Server database

ASP.Net: Define string length and Not Null Net-Framework/ASP_dot_Net-Core/Learning
ASP.Net: Define string length and Not Null
06.12.2017 185
How to specify properties of table fields in the Asp net core mvc model classes By entering attributes in front of the field names like here [Required] fuer nicht null

#13 ASP.Net MVC: Define Data Tables wie EF Migration Net-Framework/ASP_dot_Net-Core/Learning
#13 ASP.Net MVC: Define Data Tables wie EF Migration
01.12.2017 191
ASP Net MVC: Data Asp net Core 2 MVC If you want to predefine tables in Asp net core 2 MVC with values during the development time, then you can fill them out using the migration In the example, the selection table product groups with the selec

# 8 ASP: Compiling Mixed Data with ViewModel Net-Framework/ASP_dot_Net-Core/Learning
# 8 ASP: Compiling Mixed Data with ViewModel
29.11.2017 188
If you want to show mixed data from multiple tables and classes in ASP Net MVC, then you have to pass a ViewModel in the controller instead of a view A ViewModel is equivalent to a simple query or data query in SQL Server, Access, and SQL databases

# 7: ASP.Net MVC: Transferring data from controller to view Net-Framework/ASP_dot_Net-Core/Learning
# 7: ASP.Net MVC: Transferring data from controller to view
28.11.2017 168
You can pass the data from the controller to the viewing view with 3 options Whereby the first variant is the type most stable variant The view data is transferred internally as a ViewDataDictionary 1) as a view (actArtikel) 2) as ViewData ["Arti

# 6 Asp.Net Core: Attribute Routing, Defining URL Path before Controller Action Net-Framework/ASP_dot_Net-Core/Learning
# 6 Asp.Net Core: Attribute Routing, Defining URL Path before Controller Action
28.11.2017 210
Since Asp Net Core, you can define the URL route for controller actions as attributes directly in front of the action itself Example of a url path: you want the listings of all the articles of a particular manufacturer, if you have Article Manufacturer

#5 Asp.Net MVC: Web requests with arguments for actions like products 100 Net-Framework/ASP_dot_Net-Core/Learning
#5 Asp.Net MVC: Web requests with arguments for actions like products 100
27.11.2017 217
How to handle parameters in a web address? If, for example, the address Each MVC action can be given an optional parameter Example Edit (int ID) In the MVC Controller ProductsController This allows you to pass parameters like P

ASP.Net MVC: Controller Actions and Return Different Results Net-Framework/ASP_dot_Net-Core/Learning
ASP.Net MVC: Controller Actions and Return Different Results
24.11.2017 226
Basics ActionResult Asp Net controller is set as standard action in the controller The action with the return of View () Public

Asp.Net Core 2 MVC: Install Bootstrap.css Theme Net-Framework/ASP_dot_Net-Core/Learning
Asp.Net Core 2 MVC: Install Bootstrap.css Theme
24.11.2017 567
Bootstrap is also supported under the template of Asp net Core 2 0 MVC Bootstrap is a compilation of CSS files and Javascript that gives a website a theme-consistent look The bootstrap files are stored in asp net core 2 0 mvc in the wwwroot d

ASP.Net Core: Show an example with Controller-Model-View Net-Framework/ASP_dot_Net-Core/Learning
ASP.Net Core: Show an example with Controller-Model-View
23.11.2017 217
First, create a data model that you want to display Here in the example an article, with the properties IDArticle, Title and Text_Content Model File in Models Artikel cs

ASP.Net Core: Files and Structure Net-Framework/ASP_dot_Net-Core/Learning
ASP.Net Core: Files and Structure
23.11.2017 200
Under the first project in Asp net Core 2 0 you will find the following structure: Web Application (Model View Controller) Asp Net Core MVC Structure: 1) Wwwroot directory 2)

Expand Visual Studio for ASP.Net Net-Framework/ASP_dot_Net-Core/Learning
Expand Visual Studio for ASP.Net
23.11.2017 195
For the development of Asp net MVC and Core it is recommended to integrate some extensions into Visual Studio In Visual Studio 2017, go to Menu-> Tools-> Extensions and Updates Productivity Power Tools 2017 Install

Mobile

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de