15,899,639 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 Faisal_Raj (Top 20 by date)
Faisal_Raj
14-Jun-22 7:20am
View
"InvalidOperationException: The instance of entity type 'imageModels' cannot be tracked because another instance with the same key value for {'ImgID'} is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values." -
Here is the confusion. Updating all fields no issues but updating individually name field having this issue.
If I try to update name filed only without uploading any file the function will not go into if condition but showing this error.
Faisal_Raj
14-Jun-22 7:12am
View
"_context.Update(imgModels);" - this following line showing the error while trying to update name filed only.
Faisal_Raj
16-Oct-19 9:51am
View
I'm sorry. I'm very new in this field, unable to understand your idea. But in this system I have to store and update user status "0" or "1" in database each time. I have no idea that how can I use your concept in this case
Faisal_Raj
16-Oct-19 9:36am
View
How can I send the value user status "0" ?
Faisal_Raj
16-Oct-19 9:14am
View
How to set timestamp , please give me some example code
Faisal_Raj
16-Oct-19 8:58am
View
Please give me example code , so i can follow that .
Faisal_Raj
10-Aug-19 22:19pm
View
Can you please give me example that how can i do that ?
Faisal_Raj
8-Aug-19 8:57am
View
In that case what will be code from client site i mean in aspx ?
Faisal_Raj
8-Aug-19 5:54am
View
From web page i would like to on off a light using arduino. Can you help me ?
Faisal_Raj
8-Aug-19 5:09am
View
I'm not sure but maybe with jquery ajax it is possible.
Faisal_Raj
8-Aug-19 4:13am
View
There is usb port in server and i connect arduino with usb port of server. That port could be "COM3" or "COM4".
Faisal_Raj
7-Aug-19 22:27pm
View
Serial port is connected with arduino. When i press the button from web application it pass the value to arduino.
Faisal_Raj
7-Aug-19 22:26pm
View
Yes , thanks for your appreciation. Color is different part, that one i just tried to test how script works. In my code up there you may find that there is a port specified for arduino. When button "BlueOn" is pressed it pass value "2" and when again press it send value "1" to the port, so light will on and off following command. Now i want to implement this within single click. This means that i'm trying to do something like when i press the button it will pass the value "1" to arduino so light will be on and when i release the button it will pass "2" to arduino so light will off.
Faisal_Raj
7-Aug-19 9:19am
View
As you can see from my code up there, when i press the button "BlueOn" it send the value "1" or "2" to the arduino port "ardo.PortName = "COM5";". For these 2 value i need to press the button 2 times. Now i'm trying to do something like when i press and hold the button it will pass the value "1" and when i release the button it will pass "2".
Faisal_Raj
7-Aug-19 8:55am
View
Please check my code up there."ardo = new SerialPort();
ardo.PortName = "COM5";
ardo.BaudRate = 9600;"
I have to pass the value "1" or "2" to this "ardo" port by "ardo.Write(Session["currentState"].ToString());" .
How can i do this when using script ?
Faisal_Raj
7-Aug-19 7:10am
View
I understand that. When i am pressing and releasing button color is changing. But i'm confused how i can pass this value to serial port. Please help me to fix this issue.
Faisal_Raj
7-Aug-19 7:10am
View
I understand that. When i am pressing and releasing button color is changing. But i'm confused how i can pass this value to serial port. Please help me to fix this issue.
Faisal_Raj
7-Aug-19 5:35am
View
How can i pass string value by script as like code behind button ?
Faisal_Raj
7-Aug-19 3:00am
View
Kindly help me on this matter
Faisal_Raj
7-Aug-19 2:16am
View
Can you please give me example code, so i can follow that ...
Show More