Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live

asp.net core 2 pass multiple parameters to controller's action using...

Hello all!How in native JavaScript I can pass parameters int? A and int? B to the action method of controller using XmlHttpRequest?Now, I have migrate from mvc to core and I have 404.Than you for...

View Article


asp.net core 2 Make CSRF protection without using form tag

Hello all!How to protect my webapp that uses cookies authentification? I want to use XmlHttpRequest for data exchange (not using form send). Please, give simple code examples.Thank you!

View Article


Problems with creation of correct routes

Hello everybody! I have some problem. Hope for your help, because I didn't find good information in Internet. For example, I have page with general sections; every section has subsections; every...

View Article

Convert bitmap to base64 string using System.Drawing.Common package in C#

Hello all!I'm trying to use this library to create base64 string from Bitmap image using code like this:Bitmap bitmap = new Bitmap(1,1); FillBitmap(); byte[] bytes =...

View Article

why validation message on load

Hi I have simple below create form. It display validation message on load. I want user to click save to display validation message not on load.@model CapCloud.Web.Models.Users.UserSettings@{...

View Article


what is the best image optimizer,cacher and... for dot net core?

Hello.I am developing a new website and I want to cache, showing some size of image in site, show thumbnails and in fact my website is based on images and I need to optimise images.Can you give me name...

View Article

How to create confirmation pop up message?

I have a simple web page MVC Core and the page has a button, when the button is clicked  a confirmation pop up box should appear.The user cannot copy the record if they say CancelIf the user click's...

View Article

I do the following below for inserting in a table, but now with Core2,...

public static void InsertANewItemInAForeignTableWithAssetID(string strConnection, string strSQL, int intID, string strColumnSaveTo, object objValueToSave) { try { using (SqlConnection objConnection =...

View Article


best pratice how to organize Startup file .net core 2.0

Hello could you help me I would like know how to organise the file Startup.cs to dotnet core 2.0.3I used IIS : v6.1Security : Microsoft.AspNetCore.Authentication.JwtBearer v2.0.1DataAccess :...

View Article


WWW-Authenticate: Bearer error="invalid_token", error_description="The...

Hello: In my asp .net core (1.1), I have implemented bearer token authentication and authorization as explained in this article:https://code.msdn.microsoft.com/How-to-achieve-a-bearer-9448db57 1) The...

View Article

how can open modal automatically when there is a message in tempdata

Hi, how can I open modal automatically when there is a message in tempdata@if (TempData["message"] != null) {<div id="infoValidationSummary" class="modal fade" tabindex="-1" role="dialog"><div...

View Article

Asp.net core - website hosting on iis: page was not found (error 404) when...

I have a problem with my asp.net core 2.0 website, i want to host my website on IIS 10 locally, so i published my project to a folder, and enable IIS service then copy my website folder to...

View Article

How To write Razor Code in Angular 4 HTML tempalte ?

HiPlease i have an project worked using grandnode.com - and i use resources as :@T("Admin.Home.ActiveUsers")so now i need to use this part of code inside angular ht,l template - so please any help ?

View Article


validation message on page load why

HiEvery time my page load I see validation message such as "Username is Required". Which I don't want to see until user click submit.One thing I have done is to resolve this problem is if...

View Article

How do I change the data in the Grid based on the changes of the drop down list?

In MVC 5 #;  How do I change the data in the Grid based on the changes of the drop down list?Example:Select One <--- Example drop-down listAll None Read Unread Grid  -  By default the Grid show...

View Article


dotnet basics

The .NET Framework is a framework for developing and implementing software for personal computer, web etc. • It was designed and is maintained by Microsoft Corporation. • It came out around the year...

View Article

Accessing SignalR Hub from ASP.Net core which is created in ASP.Net

Im trying CORS.SignalR server is created in ASP.Net using this link . And im trying to access the Hub from ASP.Net Core client application using "@aspnet/signalr-client". My question is Is this...

View Article


MVC BeginCollectionItem Nested List Indexes not working

I've got a BeginCollectionItem repeater that is working perfectly, however when I try and follow the Joe Stevens blog to add nested lists it doesn't work in the way I expected.I've used the...

View Article

How to export data right?

I have a database with some data get by somewhere. Now i want to export the data to text files. But there can be many data. it can run many minutes.I want to start export with one API call. In working...

View Article

How to include multiple levels of related objects in EF Core?

I have these entities, ApplicationUser, UserProvider andPracticeProviders. the relationship between ApplicationUser andUserProvider is one-to-many and between the latter and PracticeProviders is...

View Article
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>