16,012,352 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by zamanipour (Top 7 by date)
zamanipour
7-Sep-19 10:14am
View
actually this code add claim to your claim list, you can change it with mine if you like:
var Claims = new Claim[]
{
new Claim(JwtRegisteredClaimNames.Sub,userId)
};
for further information you can read the document that i've mentioned above. implementing jwt is a step by step process and you have to use a comprehensive guide for that.
zamanipour
7-Sep-19 8:29am
View
check out https://www.codeproject.com/Articles/5160941/ASP-NET-CORE-Token-Authentication-and-Authorizatio
zamanipour
7-Sep-19 8:28am
View
i just changed a line in your own code: 'new Claim(JwtRegisteredClaimNames.Sub,userId)' and replaced it with new custom name/value pair. you can add as many claims as you want. for using jwt, it depends on your front-end technology. after you implement the required logic to decrypt your message in front-end (search for it based on your technology) you can have your payload as a json object and you can use claims object to modify the page.
zamanipour
7-Sep-19 8:10am
View
maybe the problem raise from the initial value of dtp2.Value. check it to be valid or use a valid date for test, like : 'm = new DateTime()' and then: 'dtp2.Value = New DateTime(m.Year, m.Month, 1).AddMonths(1).AddDays(-1)'
zamanipour
7-Sep-19 7:28am
View
what i can suggest is to check the incoming data first: console.log(data); it might be 'undefined' or 'null'. if so, what exactly your back-end passed. go check your back-end return value. also check for 'cache: false' and if all was not working, use .done() as mentioned in https://api.jquery.com/jquery.ajax/
zamanipour
19-Sep-16 8:23am
View
If you have no errors and dlls works fine then:
Try to delete this line or change it like this, your first row dosnt contains column Names:
excelReader2.IsFirstRowAsColumnNames = false;
zamanipour
14-Sep-16 6:37am
View
you are right. but it was in quick answers list! maybe because of an reply down in solution 4. I'm new here and i will keep in mind to check the question date. thanks for mentioning that.
Show More