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

Reset textbox on view and partial view.

 I'm trying to reset two textboxes in a partial when I click 'Add and Create Another' button and can't get them to reset.View<div class="row"><div class="col-md-7 order-md-8"><div...

View Article


How can I access the ssl certificate of my asp.net core app

Dear All,Please I built my web service with asp.net core 3.1. I am using a java application to connect to this web service. But I get this exception when I try to connect to the webservice application...

View Article


IOptionsMonitor doesn't work with custom ConfigurationProvider after upgrade...

I have a class CustomConfigurationProvider : ConfigurationProvider with the method:public override void Load(){    // Load values into this.Data    ...    //    this.OnReload();}This loads options...

View Article

MQTT Authentification in Asp .Net Core 3.1

Hello can anyone advise how to implement Authentification(username and password FROM DB level) in MQTT platform, currently have few ideas in mind:1. Authenticate on every message received from client,...

View Article

How to make global variables on asp.net core 2 on level of all project web API ?

problemHow to make global variables on asp.net core 2 on level of all project web API ?I work on asp.net core 2.1 project web API i have more controller and i need to use global variables for all...

View Article


issues faced while extend Role based authorization

Hello ,i faced issues when i tried to extend role based authorization by using Microsoft identity.when call login action method it will generate token if not added role into claim List. var claims =...

View Article

Can run API in Azure but not on local machine in IIS - 500.31 error

So I have been running my new API in Azure successfully (Xamarin and WPF clients using it).  My employer wants me to run the API on a local server which means I have to first get it to run in IIS on my...

View Article

Fetching form data and obtaining response

I am writing an app that allows one to upload several files and that has a table in the view dinamically updated according to the uploading.Thus, I have a view with a form like this:<form...

View Article


how do i get the generic type?

hilets say i havevar someValue = List<SomeClass>(); //SomeClass inherits from BaseClassi want to get what type is in the list (eg SomeClass) and then find if it inherits from baseclassthis is...

View Article


Host blazor in winforms or other application types

Hello,I have a project where i want to host a server-side blazor in a winforms application (or any other).I successfully did it, it works.I created a blazor project, then changed it to class library,...

View Article

can i cast to a generic type with base Classes?

Hi i have thispulic class BackGroundClass<T,X> : BaseClass where T : AnotherBaseClass where X : AnotherBaseClass { } public class MyClassA : BackGroundClass<FooA, BarA>// FooA and BarA both...

View Article

New column added for table when inhereting IdentityUserClaim

I have a basic class that inherits IdentityUserClaim<int>. When I do a migration it adds a column named UserId1, but this column isn't visible any other place. The bad thing is that when calling...

View Article

localization In .Net Core

Hi,  i use IViewLocalizer  and i have duplicate text in most views that i duplicate it in any resources file how can i set a common resources file for all view ?  

View Article


Instrumentation Profiler in CoreCLR(.Net Core) - Ways to get HttpContext in...

I am trying to Instrument .NET Core web applications that runs on .NET Core 3.1 using CoreCLR Profiler. When I allow injecting the code into the Web application's method the helper assembly(.NET...

View Article

Can one serve "static" but external content underneath an asp.net.core...

We've got an application that we deploy on Linux.  It's a self contained application that is started up from systemctl and uses Kestrel.  This is the "server side" code, but in this picture there is a...

View Article


blazor application architecture

Still a total noob to Blazor.  Trying to figure out if the following is possible. Or maybe am I crazy for trying to mash this altogether with blazor?Customer:a Progressive Web App for mobile using most...

View Article

Value cannot be null. (Parameter 'connectionString')

Hi,I am trying to link to my database. I am using aspnet.core 3.0 mvc.  I am using nu-get console and getting the above error.Below is the appsettings.json:"ConnectionStrings": {"BumplesDBConnection":...

View Article


asp-page-handler is not able to call the post method in pagemodel

am trying to call a post method in my page model using asp-page-handler(binded into button). When i click on the button am getting 500 internal server error.Below is the code I tried.Cshtml:<form...

View Article

How can I add blazor server-sdie into an exists asp.net core project?

I have made a website by asp.net core 3.1 before.Now I wanna add a feature of 'contact us'.After the users input their name/phone and click the submit button, the blazor server-side will send an e-mail...

View Article

How Do I Block Data from Rendering in an API Controller?

I have an api controller that gets data from a service that returns more data than I want rendered in the json output, but I also need to access the same data from Razor Pages. How do I block that...

View Article
Browsing all 9386 articles
Browse latest View live


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