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

Is there a way to get "ApplicationPool dentity" of the Process Model to work...

I have SSL working with self-signed certificates in my local IIS server.  And using "ApplicationPoolIdentity" for the process model works to run the site itself using https.  But I have an...

View Article


How can I get access to the html tags in c# code behind with Core2?

In web forms,, I could get grab a tag from the html file by using the following:HtmlGenericControl divTemp = FindControl("divListView");Then I could change css attributes of the tag.How do I do that...

View Article


Few questions about Kestrel

Hello, I need to create an application based on .NET core 2.0 but I stuck on configuring platform. I have some tasks which are milestones in my app so please help.1) My index.html page contains...

View Article

error message not accessible in this context because it is 'Private'.

I am new to asp.net I got this message when I try to run my .aspx on web browser. I wrote the code on filename.aspx.vbPrivate Sub SubmitBtn_Click(sender As Object, e As System.EventArgs)' is not...

View Article

What's the best way to wrap data in custom format in API controller

I want to wrap all my data in "data" when returning objects(something like http://jsonapi.org/ but not exactly as I don't want all the features), so there's some place for metadata like pagination. Of...

View Article


How to rename published ASP.NET core binary file

I need to rename published binary files in an ASP.NET Core application. For example, the files in the published folder...

View Article

Migrating MVC 5 to .net core 2.1

What are steps for Migrating MVC 5  application into .net core 2.1.I have different areas and multiple project file(BAL,DAL,UI) in the  solution

View Article

Creating a survey or questionnaire

Hi, i'm writing an asp.net core app that functions as a quiestionnnarire, where users can answer questions and get a result on email. I have some troubles on how to architect this and i'm looking for...

View Article


SessionState in core 2.0

In asp.net mvc we used to decorate controller for disabling session state by using attribute as [SessionState(System.Web.SessionState.SessionStateBehavior.Disabled)]  How we can do it in core 2.0?

View Article


Are data transfer objects (DTO) good practice?

I'm not sure if it's better to create separate models for input and output from my Web API controllers or operating on entities(speaking in EF context) directly.I can control which properties to...

View Article

Uncaught TypeError: Cannot read property 'settings' of undefined at...

I am new to Asp.net Core MVC. I have a view with validations from which I call a partial view using Jquery and ajax. The partial view displays correctly but the vaidation is not working in the partial...

View Article

Entity Framework Core: The transaction operation cannot be performed because...

In the process of creating a Web API. While testing I've ran into some problem when loging requests to the database. The problem happens when I spam the API with many requests.I will try to include as...

View Article

How to connect Mysql Database to .netcore MVC project

Hello Guys,I am new to .netcore 2.0 please help me on this, I have to connect a MySQL database but I am not able to connect it.i have used some references but it is still showing object reference not...

View Article


Export to Zip ( Contains multiple Json Files)

Hi,I have multiple objects say. eg.Customer, Products.I need to create a separate Json file for Customer and Products.Finally this two Text files(JSON) should be zipped under "MyInfo".Zip.When the user...

View Article

UI as well as API

Hi,I need to create a method, which now will be a UI. Later i need to expose it as api as well. I am using MVC core as my project.Here is the code for UI. How i can expose this AddUser as api...

View Article


Date Picker, Modal Popup

Hi,I have a user grid which lists users. For each row there will be "add More info"button,On click of "add More info" button, it should open up a Modal Pop Up.  ie. background is blurred, so the pop up...

View Article

Razor Pages .net 2.0 expanding menu in table

I am new to Razor Pages and web development in general. I currently have a table which is displaying a model.<table class="table"><thead><tr><th></th><th>...

View Article


Architecture Dependency Validation/Layer diagram not working in .Net core (ie...

I'm trying to setup a simple architecture layer diagram to validate that we don't break our layering rules by using namespaces/dll's from incorrect layers.I setup a simple solution that has a console...

View Article

Image may be NSFW.
Clik here to view.

Headers Location Null But Response Ok

Not sure whats going on here. Bit of a newb to API's and REST. I made an API that's working but the location is returning null? code:using (var client = new HttpClient()) { client.BaseAddress = new...

View Article

Not able to refer class library

Hi ,i have added a folder inside the solution and add added classes inside it.I am getting error while refering same class name space in my controller class.i am using visual studio code for .net core 2.0

View Article
Browsing all 9386 articles
Browse latest View live


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