Forgot your password?
Sign in with
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Python questions
View C++ questions
View Java questions
All Message Boards...
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Design and Architecture
Internet of Things
C / C++ / MFC
ATL / WTL / STL
Objective-C and Swift
Hardware & Devices
Hosting and Servers
.NET (Core and Framework)
Site Bugs / Suggestions
Spam and Abuse Watch
The Insider Newsletter
The Daily Build Newsletter
Most Valuable Professionals
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
What is 'CodeProject'?
Ask a Question
Bugs and Suggestions
Article Help Forum
Comments by ElenaRez (Top 15 by date)
Thank you for your help. But then How can I get the ChartListObjects value? I wrote something like below but there is an error for DimensionOne and Quantity part like the following: 'List<chartmodel>' does not contain a definition for 'Quantity' and no accessible extension method 'Quantity' accepting a first argument of type 'List<chartmodel>' could be found (are you missing a using directive or an assembly reference?'
var XLabels = Newtonsoft.Json.JsonConvert.SerializeObject(Model.GrantedApiToApplicantAvg.DimensionOne).ToList();
var YValues = Newtonsoft.Json.JsonConvert.SerializeObject(Model.GrantedApiToApplicantAvg.Quantity).ToList();
Thanks. If you assume that grantedAccessPercent and Avg are two queries and I add their data into lstModel1 and lstModel respectively that are all kinds of ChartModel. How can I integrate them into an object and pass them from index method of Controller into view?
Thank you for your help. I want in the razor view to have list of ChartModels but I don't know how to fix this. Maybe even the class ChartListObjects is useless. Or maybe I need to know how to get those chartModels in View
Thank you for your reply. I pasted what you suggested and after running the project, there was shown "Redirection to /" to me in debug console. How can I fix this? Even I modified my signin method like the following, but there wasn't any change for Redirection result in debug console:
public async Task<iactionresult> Signin(SigninViewModel model, string returnUrl = null)
Thank you for your reply. Could you please explain how can I use UNC paths?
I pasted what you said in my code and now the user could login to my website. In my website, I have 4 controllers and on top of each, I added [Authorize] as you suggested in order to let all the user to work with them. But now the problem is, when the user click the related menu icon, all those pages shows white pages. I appreciate if you guide me about the problem
I pasted what you said in my code and now the user could login to my website. In my website, I have 4 controllers and on top of each, I added [Authorize] as you suggested in order to let all the user to work with them. But now the problem is, when the user click the related menu icon, all those pages shows error 404. I appreciate if you guide me about the problem.
Thank you very much. Your first solution worked for me.
Hi. I pasted what you suggest me in my code. There was an error "The name session does not exist in the current context" for the first line of Invoke method in CustomAuthenticationMiddleware class. So I changed it to 'context.Session.GetAuthenticatedUser();' which fixed the error. Now after running my project, it shows me an error for the CreateHostBuilder(args).Build().Run(); in Program.cs which is System.InvalidOperationException: 'Unable to resolve service for type 'Microsoft.AspNetCore.Session.ISessionStore' while attempting to activate 'Microsoft.AspNetCore.Session.SessionMiddleware'.'
Hi. Thank you again for your help. I'm implementing asp.net core 3.1. And in appsettings file there is no app.UseEndpoints so I pasted what you mentioned after UseRouting. Also now there is an error: Can not implicitly convet type System.Security.Principal.IPrincipal to System.Security.Claims.ClaimsPrincipal for the line if (user != null) context.User = user; which I couldn't fix it yet.
Thank you very much for your helpful reply. I'm implementing asp.net cor 3.1 and I don't have Global.asax.cs file. Instead I have appsettings.jason and startup.cs. How can I use your Global.asax file in my own project?
still the error exists like the following:
.Max(x => x.LastReqStatusNavigation.Name)' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either AsEnumerable(), AsAsyncEnumerable(), ToList(), or ToListAsync(). See https://go.microsoft.com/fwlink/?linkid=2101038 for more information.
Thanks for your suggestion, Still the error exists like the following:
.AsEnumerable()' could not be translated. Either rewrite the query in a form that can be translated
Thank you for the reply. Is it possible that the problem is due to not using async and await for the method
Thank you very much for the solution. As you mentioned I had specified in the above code, in .group class which is a parent div I chose the the height to be 33px. After all, with your suggestion, I changed the value of height in inputdiv class which is such a sub container of the input to 33px. But still the the problem exists and the height of input is smaller than its container div "inputdiv" and thus its parent div "group". You know in my code "group class" is a very large container div and inside it there are 2 divs called "inputdiv" that each contains input.
Last Updated 1 Jan 1900
All Rights Reserved.