Free Code Snippets in C#, Net Framework, Office 365, ASP.Net,WPF, Visual Studio, SQL Server, Antivirus free
#
🚩#22 ASP.Net: Validation, validity Net-Framework/ASP_dot_Net-Core/Learning
🚩#22 ASP.Net: Validation, validity
15.12.2017 3
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 11
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

ASP.Net: Assign Form ID with asp-action asp-route-id Net-Framework/ASP_dot_Net-Core/Basics
ASP.Net: Assign Form ID with asp-action asp-route-id
14.12.2017 7
Task: ASP form must have the appropriate ID in the action parameter Problem: If you build a form in an ASP Net MVC Core application that has a different post-back action in name naming, then ASP Net MVC Core does not add an ID With an appropriate

Relaunch CodeDocu.de Blog/Blog_colon_-Working
Relaunch CodeDocu.de
14.12.2017 7
Microsoft programmers will become CodeDocu de Since the domain was always focused only on Windows technologies,

SQL Server Warning: Data loss could occur SQL-Server/SQL
SQL Server Warning: Data loss could occur
14.12.2017 7
When modifying tables in SQL Server Object Explorer in Visual Studio 2017 by renaming column fields, then threatens the complete loss of data in a SQL Server database Important is T-SQL: If you change a field name in the T-SQL area of ​​the table design of a

ASP Error: System.InvalidOperationException, An exception occurred while reading a database value Net-Framework/ASP_dot_Net-Core/Errors
ASP Error: System.InvalidOperationException, An exception occurred while reading a database value
13.12.2017 11
ASP Error: System InvalidOperationException, An exception occurred while reading a database value Error message in ASP Net System InvalidOperationException: 'An exception occurred while reading a

ASP.Net MVC: Show Date Formatted Net-Framework/ASP_dot_Net-Core/Basics
ASP.Net MVC: Show Date Formatted
13.12.2017 12
Definition of the date field in the MVC Model DisplayFormat DataFormatString sets the formatting of the date for output [Display(Name = "Date Edit" )]

SQL Server: Default default current time SQL-Server/SQL
SQL Server: Default default current time
13.12.2017 11
How do you enter the current time in a SQL Server database as the default value in a date field? [dtEdit] DATETIME

# 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 13
- 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 19
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 15
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 14
The controller creates a new action method called New public IActionResult New() {

ASP EF Error: Unable to create object of type DbContext Net-Framework/ASP_dot_Net-Core/Errors
ASP EF Error: Unable to create object of type DbContext
09.12.2017 16
Problem: When uploading the Code First data to a SQL Server with Entity Framework comes the message PM: Add-migration initial Unable to create an object of type 'a

EF: Update Migration Type Mappings. Which C # variable types are to which SQL server field types Net-Framework/ASP_dot_Net-Core/Data-Model
EF: Update Migration Type Mappings. Which C # variable types are to which SQL server field types
09.12.2017 19
Entity Framework, Default, Types In the following I created a model class under ASP Net Core 2 MVC and transferred them via add-migration and update-database to a SQL server The following variables are converted to C # including default defaults on

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 14
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 13
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 19
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

Mobile

.

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