15,891,184 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 Python 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 Member 13812021 (Top 22 by date)
Member 13812021
5-Mar-20 9:40am
View
Deleted
It does not like the AsEnumerable. 'DataTableExtensions.AsEnumerable(DataTAble)' is a method, which is not valid in the given context.
Member 13812021
18-Nov-18 14:29pm
View
So use roles to create this? I have roles but do not have anything implemented for those roles as to what each role is aloud to do. Any Examples of this would be great. I had planned on a later version to include in the admin dashboard a way to give permissions to the roles. What they can see and do with maybe a check box for each. I am new to C#. I have done this in PHP before but that is a different animal.
Member 13812021
30-Oct-18 21:54pm
View
I have decided to just run a stored procedure that inserts the CustomerName and gets the Id and then updates the CustomerId in the other table. Seems to be cleaner and keeps code out of the controller.
Member 13812021
30-Oct-18 15:38pm
View
That did not work. putting the code you have still has the message like before. I have found that you cannot get the CustomerId until it is saved. However I am still coming up with a 0 for CustomerId even when with breakpoints the CustomerId is what it is on the line of code to add. I just need to be able to update a record with the same userId with the CustomerId.
Member 13812021
30-Oct-18 14:08pm
View
Yvan, The CustomerId is the Key to the Customer table and gets auto incremented on adding. So maybe I should do something like this?
private readonly int CustomerId = CustomerId. I will play with it and see what I come up with. If you know a better way that would be great.
Member 13812021
29-Aug-18 23:14pm
View
I have gotten the file to upload but I am still not able to save the file name in the database that it uploads. So when I upload an image I would like the record to save the filename in the column ProductImage
Member 13812021
28-Aug-18 15:51pm
View
I am using jqgrid to show my records. Since it has the capability of adding and editing also I thought it was the clean way to go. Ultimately I would like to add a record with a image link included with the product. The link would be where the file Upload creates the folder and image storage preferably the category that it is in. So create a folder inside of the images folder (if not there already) and put the photo in it. I believe that I can handle the thumbnail with just Css when the page is loaded. But if you think, for display purposes it would be better to load a thumbnail instead than I would probably have to agree that it would make load time quicker. Also not looking for inline editing either. The popup provided is good enough.
Member 13812021
10-Aug-18 9:30am
View
The save is the 'Create Customer' in the controller section above. I will have to look at it later. The same code is being used in another table and it works, that is what it confusing to me. I thought I may have missed something in the copy.
Member 13812021
10-Aug-18 8:48am
View
Right now the table is empty. There is no row selected. I will put a record in the table manually as I did before to make sure it was showing in the grid. I deleted them with the delete button so both of those work. I also have a users table that appears to be working but it already has records in the table. I will post my findings. However if this is the case, why does it require that there be data in the table before it will work?
Okay added a record manually. Not sure what is going on. It still uses the edit and when I go to edit a record it saves it in the table as a new record. So edit is using add and add is using edit????
Member 13812021
6-Aug-18 9:34am
View
Thank you for the reply, I had to add a reference to the top also. Which I thought I had there already.
Member 13812021
25-Jul-18 13:40pm
View
That is why I explained that if I manually put the dates in the parameters it works. I need to pass the dates to the stored procedure through the view form. I have tried a few things with "mydata" and it still wants to run the stored procedure on refresh or load. I think I might try to put the grid in a partial and maybe an if statement for the dates so it will not run the Proc unless there is parameters. Thanks for your help although some sample code would have helped.
Member 13812021
5-Jun-18 13:34pm
View
Look here: https://stackoverflow.com/questions/2915748/convert-a-series-of-parent-child-relationships-into-a-hierarchical-tree
Member 13812021
5-Jun-18 13:28pm
View
You have a record in the table that you are querying with nothing in it and it is set to NotNull. If you are going to have a null reference in a null space than you should select the default value as being (''). Then it will be blank or whitespace and should take care of the error you are getting.
Member 13812021
5-Jun-18 13:22pm
View
Perhaps you will find some help here: https://stackoverflow.com/questions/28874531/6x6-bingo-game-when-a-drawn-number-is-on-the-card-add-1-to-the-7th-column-and
Member 13812021
5-Jun-18 13:14pm
View
Could you explain maybe why you are in need of counting? Also what is this doing, the text box. If someone puts a url in it, why would they click on it. Just trying to get my head wrapped around the procedure.
Member 13812021
5-Jun-18 13:05pm
View
This is better served as either a data sheet or stored in a secure table. I am not sure what the reasoning is but if you do hold this data anywhere every time someone is logging in, you are going to end up with a very large set of data. If you are trying to accomplish user logins, maybe consider adding a column in the table as an int that increments every time they login with a current date and maybe an IP address if you want.
Member 13812021
5-Jun-18 12:55pm
View
There are many ways to this however it depends on what you are doing this in. Is it a Web Razor page, a win app, or something else. A pie chart is going to be based on a % or int value. What are you using to create the chart?
Member 13812021
5-Jun-18 12:04pm
View
When they select a coarse what is taking place? Is there a table with courses that are with associated user? Meaning is there a course table, user table, and then a UserCourses table? Or is there a User table, coarse table, UserToCourse Table?
Member 13812021
5-Jun-18 11:44am
View
It would help to see JavaScript and css. I would think you should be using to correspond with the javascript so that it will drop down. You are showing a list of links.
Member 13812021
5-Jun-18 11:34am
View
You should place some code so we can see what is causing the error.
Member 13812021
5-Jun-18 11:29am
View
Is there a reason you are separating them? Where are the "crdt" and "time" coming from?
Member 13812021
5-Jun-18 11:10am
View
I guess i am wondering where the matching data comes from? Database? Also where are they inputting this? You show a dropdown list but not an entry textbox.
Show More