Free Code Snippets in C#, Net Framework, Office 365, ASP.Net,WPF, Visual Studio, SQL Server, Antivirus free
#
C # Application: Webrobot to read all Ebay Kleinanzeigen Net-Framework/WPF/Code-Samples
C # Application: Webrobot to read all Ebay Kleinanzeigen
20.02.2018 8
Task: The application scours through a full range of Ebay Classifieds The application is written in C #, WPF Base: Ebay Classifieds does not filter the results for fulltext input, it only displays the results which

WPF: Navigate to a page Net-Framework/WPF/Code-Samples
WPF: Navigate to a page
13.02.2018 27
Switch from a window to a page In MainWindows with the code private

WPF: create a selectable list Net-Framework/WPF/Code-Samples
WPF: create a selectable list
13.02.2018 29
The following code example shows how to create a list in WPF with selectable rows The list consists of UserControl elements, which appear stacked in a stack panel as a list A list with its own user control lines makes sense if a data grid or a pure table or

Error The algorithm HS256 requires the SecurityKey.KeySize to be greater than 128 bits Net-Framework/ASP_dot_Net-Core/Auth
Error The algorithm HS256 requires the SecurityKey.KeySize to be greater than 128 bits
19.01.2018 110
Error: System ArgumentOutOfRangeException The algorithm: 'HS256' requires the SecurityKey KeySize to be greater than '128' bits The error message occurs when creating a security token for authentication Asp Net Core Wep Api, Identity, Authentication, JWTBearer

Asp WPF: Web API Read Values from Asp Net Api with HttpClient Net-Framework/ASP_dot_Net-Core/API
Asp WPF: Web API Read Values from Asp Net Api with HttpClient
17.01.2018 67
This example shows how to read the values ​​from a web server with API in WPF ASP Net Core Web API is installed on the server (IIS Express Server with SQL Server Express local DB) As desktop program a WPF application is installed

WPF: Set Startup Window Net-Framework/WPF/Code-Samples
WPF: Set Startup Window
17.01.2018 65
Where to put in WPF, with which windows the application should start? Solution: In the file: App xaml in the header is the setting StartupUri = "MainWindow xaml" Here you can change the setting

ASP.Net: create a website with authentication auth Net-Framework/ASP_dot_Net-Core/Auth
ASP.Net: create a website with authentication auth
17.01.2018 59
Start Visual Studio and choose under the menu File-> New-> Project Then in the dialog: New Project at Visual C # -> Net Core -> ASP NET Core Web Application select In the Location field set the directory where the web application will be s

Asp Auth: Account Views Forms Net-Framework/ASP_dot_Net-Core/Auth
Asp Auth: Account Views Forms
17.01.2018 50
The following view forms are set with the standard installation of Asp Net Core Authentification, with user-password combination root Account Register Manage Index

ASP: Create web application with authentication Net-Framework/ASP_dot_Net-Core/Auth
ASP: Create web application with authentication
16.01.2018 58
In the Package Manager Console, the command PM> update-database To run This creates the authentication database with the appropriate context description fo

UWP: Selectionbox Usercontrol Net-Framework/UWP-Universal-Windows-Plattform
UWP: Selectionbox Usercontrol
16.01.2018 48
The following code is for building your own text box combination element, with which you can select texts or enter manually You only have to create a subdirectory Usercontrols in the project, create a new usercontrol and insert the following code there

C #: find value in a dictionary and compare Net-Framework/c_hash_/Code-Examples
C #: find value in a dictionary and compare
16.01.2018 50
How do you find a value in a dictionary in C #? A dictionary consists of key-value elements, that is, there are always pair entries with a key and a value such as Settings are for example a dictionary The dictionary offers as a simple

Settings: Save List Array in Settings Net-Framework/UWP-Universal-Windows-Plattform/Basics/UWP-Settings
Settings: Save List Array in Settings
15.01.2018 65
The type List can not be saved directly in the settings because a list is not serializable That's why I use a list here and save it in a Settings container In settings containers, values can be grouped together This example shows how

UWP: List as sortable text array Net-Framework/UWP-Universal-Windows-Plattform/UWP-Code
UWP: List as sortable text array
15.01.2018 69
With List you can form a simple array of strings or values under UWP List list_Test = new

XAML: The name UserControl does not exist in the namespace Net-Framework/UWP-Universal-Windows-Plattform/XAML
XAML: The name UserControl does not exist in the namespace
12.01.2018 66
Description: when adding a new UserControl the following error is displayed in the Mainpage: Error message: The name "UcSelection" does not exist in the namespace "using:Rename_Images_Vi

UWP: Textchanged with Enter Enter Net-Framework/UWP-Universal-Windows-Plattform/UWP-Controls/Textbox
UWP: Textchanged with Enter Enter
12.01.2018 60
Under UWP Universal Windows Platform applications, the _TextChanged event always fires whenever the textbox or input fields change In Windows desktop applications, this was only possible after completion of the entire input with Enter or Tabulator

ASP.Net: A database operation failed while processing the request. Net-Framework/ASP_dot_Net-Core/Errors
ASP.Net: A database operation failed while processing the request.
11.01.2018 72
The first time an Asp Net MVC Core 2 application with Authentication is called, the error occurs: A database operation failed while processing the request

API: Data Modify and Create with Api Example Net-Framework/ASP_dot_Net-Core/API
API: Data Modify and Create with Api Example
10.01.2018 61
With API interfaces, clients such as smartphones, desktop programs or IoT devices can exchange data with an Internet server Api corresponds to the so-called REST interface on the Internet, where data is exchanged with HttpGet, HttpPut and HttpPost

API error: Could not get any response Net-Framework/ASP_dot_Net-Core/Errors
API error: Could not get any response
10.01.2018 101
When executing the API request to an ASP Net application, the feedback comes in the API client: Could not get any response This seems to be like an error connecting to

Problem ASP.Net: ID is increased by 1000 Net-Framework/ASP_dot_Net-Core/API
Problem ASP.Net: ID is increased by 1000
10.01.2018 51
Error Description: When entering new records via an API in ASP Net Core MVC, it may happen that the ID is not increased by 1 as specified, but increased by 1000 Reason: It may be that the incoming record has a weigh

Postman: Check API Controller with Chrome Extension Net-Framework/ASP_dot_Net-Core/Tools
Postman: Check API Controller with Chrome Extension
09.01.2018 90
To check the data of the API interface, you now have direct access via the URL Api Instead of the address in the browser localhost: 51081 Projects to enter for the website in the browser, Now give the URL localh

🚩#23 ASP.Net: Add Web API Controller Net-Framework/ASP_dot_Net-Core/Learning
🚩#23 ASP.Net: Add Web API Controller
09.01.2018 65
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

Asp.Net Mvc: DbContext as interface of a SQL database Net-Framework/ASP_dot_Net-Core/Data-Model
Asp.Net Mvc: DbContext as interface of a SQL database
09.01.2018 66
Asp Net Mvc: DbContext as interface of a SQL database to the Asp Net Core application A connected database is always connected to Asp Net Core Mvc with some kind of bridge or interface This is called DbContext In principle, the Entity Framework DbContext translate

🚩#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 103
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

Add WPF Local SQL Database to Application and Connect Data Net-Framework/WPF/Code-Samples
Add WPF Local SQL Database to Application and Connect Data
04.01.2018 117
If you need a database in WPF that only serves as a data store for the WPF application, then you should create a local database The database is created and linked with Add New Item-> Service Based Database This is a local SQL Server database that places t

WPF HTML: Read Website with Webrequest and HtmlAgilityPack Net-Framework/WPF/HTML-Documents/HtmlAgilityPack
WPF HTML: Read Website with Webrequest and HtmlAgilityPack
03.01.2018 106
WPF HTML: Read Website with Webrequest This example shows a WPF application with C # code, which reads a web page and reads out the details contained therein A WebRequest, a HttpWebresponse is used and the HTML website is evaluated with the HTMLAgilityPack

🚩# 23 ASP.Net: Adjust Validation Net-Framework/ASP_dot_Net-Core/Learning
🚩# 23 ASP.Net: Adjust Validation
22.12.2017 75
# 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

Net Email Client: set timeout Net-Framework/vb_dot_Net/email-client
Net Email Client: set timeout
18.12.2017 59
With the Net Email Client, it can sometimes happen that the email program reports a timeout error This happens if the requested email server does not respond in time Email error message: Timeout for the operation has been exceeded

🚩#22 ASP.Net: Validation, validity Net-Framework/ASP_dot_Net-Core/Learning
🚩#22 ASP.Net: Validation, validity
15.12.2017 68
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 75
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 112
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

Mobile

.

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