10191 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
C# asp.net c# regex replace special characters with space remove characters from string
7677 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
C# web-config code-first-migration entity-framework
7600 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
C# Read JSON data read dynamic JSON in C# json to c# class
5510 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
asp.net entity framework C# Unable to update the EntitySet
5101 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
visual-studio-code code-formatting code-beautify php c#

5030 0
Interface in C# (With Example)
In this article, I have explained about Interface in C#, when to use it and why do we need it with an example.
Type
Article
C# interface in C# c#-interface c#-interface-with-example
4991 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
C# c# connect to sql server c# database connection
4880 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
C# json Deserialize
4821 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
ASP.NET MVC C# how to compress image size in asp.net c# how to reduce image size in asp.net c#
4399 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
Git push error git did not exit cleanly

Page 1 of 13