How do I convert server time to user's time in C#?
I am trying to find a way to display Date and Time based on the user's timezone, but it seems that efforts to make this work is not working.
I want to achieve a situation where Date and Time that is displayed in a user's account in all the pages...
I have question and i don't have answer for it
my question is
How does mvc application get the cookies from the client ?
which of the following is correct
1-cookies are sent in each request to the server
2-the server send the request to the client and ask the client to send cookies...
First of all, i am totally no experienced with C# language, but just try to learn by myself.
Right now im facing a problem when try to execute the code.
This code im just get at here :
I need to try this code because i have 1 dibal weighing...
here is the ERROR MESSAGE:- Unable to cast object of type 'System.String' to type 'query'
public static Xxl.Query QueryBySize(string SizeNo)
Query result = new Query();
result.SizeInfo.SizeCode = "Xxl";
Xxl.Query result1 = new Xxl.Query()...
Hello everyone, I am developing a project for the management of emergency vehicles, as you can see from the structure visible in the image there is a server and five clients, with many accesses to the server, I have now thought to avoid giving the access to the database to dozens of users to use...
Hello everyone. I will be grateful for your kind help on this one. I am trying to transfer a specific listview column items to a listbox in C#. Heres my effort below.
Unfortunately my code rather iterates though only the entry of the specified column and splits it as letters into the listbox...
Sir, I save my password in database is SAAmi@123 but if even enter in small letters saami@123 means its also logging in but it was not correct. please correct in my code pls
if (textBox9.Text != "" && textBox10.Text != "")
Mysql Delete record query error, if i select record from gridview that record shouls deleted from mysql database
private void button9_Click(object sender, EventArgs e)
if (ID != 0)
//if (textBox6.Text!= "" && textBox7.Text != "" && textBox8.Text != "")
I'm trying to save the Outlook attachment file email and save in sql. I tried this following code and it only saved a numerical values
I'm trying to save inbound Outlook mail data to sql server however I'm getting in error in System.Runtime.InteropServices.COMException: 'The attempted operation failed. An object could not be found.' What did I missed
Note: RetrieveMail is exist in mailbox
I'm trying to create an email reply on Outlook and save the email details (Sender, To, CC, Subject, Body and Attachment) on Sql Server. Can you please guide me. Thank you!
More Details: After receiving an email the user will reply to an email after replying the user data (Sender, To, CC...
I want to ask that can software in different cities uses the same database to store data.
I am new to c#. I want to know if I develop software in c# and then install it in different cities(branches) of same company can I use the same database for all running software in different...
Hello i am new to c# and trying to create some simple programs and one of those is a randomized playlist for spotify.
When I run the code I get this error:
"Unhandled exception. System.ArgumentOutOfRangeException: Index must be within the bounds of the List. (Parameter 'index')
I've been trying to find a solution to a problem I am having. I am trying to save a picture to the "My Pictures" folder but I keep getting an error in the code saying "cannot convert from 'string' to 'system.environment.specialfolderoption'"...
Hi guys, New to coding trying to create player movement and these errors are showing up in unity -
Assets\Script\Movement.cs(16,26): error CS1061: 'Vector2' does not contain a definition for 'GetAxisRaw' and no accessible extension method 'GetAxisRaw' accepting a first argument of type...
Hello, I have problem with my WinForms application that I cannot solve and that's why I am writing this. The problem is that my controls settings are resetting back to default. The designer file is saving. The problem occurs every time I relaunch Visual Studio. I will attach pictures how it...
I'm writing a code that is trying to access the backSprite and frontSprite, but it gives me an error CS0122. Can anyone help?
This is for Unity. The error is: Assets\Script\Battle\BattleUnit.cs(16,57): error CS0122: 'MonsterBase.frontSprite' is inaccessible due to its protection level