11810 3
How to remove or replace all special characters from a string in C#?

I want to send an XML data to server, and to make the XML valid i have to remove all the special characters(@,#,%..) etc from the string of address and send it to server , as it accpets XML data without it, otherwise it throws error

So how can remove special characters from string using C# in ASP.NET?

Suppose my String has

...
Type
Question
11496 0
How to read JSON data in C# (Example using Console app & ASP.NET MVC)?
In this article, I will provide you simple way to read JSON data in C# using ASP.NET MVC and Console application code sample & example to read dynamic JSON in C#.
Type
Article
9047 1
Connect to SQL Server in C# (example using Console application)
In this article, I will provide working console application example in C# to connect to SQL server database and explain about connection string C# with various connection strings sample.
Type
Article
8203 3
The type initializer for 'System.Data.Entity.Migrations.DbMigrationsConfiguration`1' threw an exception

I am trying to Enable migration in Code first using Nuget package manager console command

...
Type
Question
7346 2
How do i format or beautify code in Visual Studio code?

I have just started using Visual Studio code, but i am not able to format code in it, I have tried ctrl k+ Ctrl d but it doesn't work, any helpful link for it?

...
Type
Question


6101 2
Unable to update the EntitySet because it has a DefiningQuery and no InsertFunction element exists in the ModificationFunctionMapping element to support the current operation

I am trying to enter a new value in my database table row using Entity Framework in my asp.net MVC application, but getting this error

Unable to update the EntitySet because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.

How can I solve it, any suggestions or help? thanks

...
Type
Question
5755 0
Reduce image file size using ASP.NET MVC & C# (Without losing image quality)
This article will help you to reduce your image (jpg or jpeg) file size without losing image quality in asp.net MVC C#.
Type
Article
5557 2
Cannot convert null to a value type JSON error

I am getting error 'Cannot convert null to a value type' when trying to deserialize JSON response into class object
I have the following code in C#

...
Type
Question
5465 2
Git push error "git did not exit cleanly (exit code 128)" , how to solve?

When I am trying to push my new commit using Tortoise-Git on server, I am getting this error "git did not exit cleanly (exit code 128)", here is the image of the issue

...

Type
Question
5386 0
Encrypt password & decrypt it (C# Console application example)
In this article, I am going to provide code in C# to encrypt password and decrypt it using AES in Console application example & also shows MD5 password hashing example.
Type
Article

Page 1 of 14