4027 1
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
3928 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
2220 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
1963 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
1708 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#

1499 1
Using a Hub instance not created by the HubPipeline is unsupported.

Hello, I am trying to call SignalR method from C# controller in asp.net MVC, but I am getting this error

Using a Hub instance not created by the HubPipeline is unsupported.

Here is the image of the error

...

Type
Question
asp-net mvc signalr
1385 2
How to convert JSON String into C# class object

I am trying to convert JSON object into C# class object, Using a really simple test case:

...
Type
Question
JSON C# serialization deserialization
1350 1
Ways to Convert Datatable to List in C# (with performance test example)
This article explains you the various ways to convert Datatable to List using C# with example, this article also shows a small performance test of linq and foreach method.
Type
Article
C# ASP.NET Datatable to List convert datatable to generic list c# convert datatable to list in c# using linq c# convert datatable to list of objects
1334 1
how to get location name (address) from lat-long in c#

How can I get location name(address) by entering latitude and longitude using google maps or any other API in C# .Net?

thanks 

...
Type
Question
asp-net C# google-maps get-address-from-lat-long
1197 2
Error : Keyword not supported: 'metadata'

I was trying to use Hangfire.IO in my MVC ASP.NET boilerplate application and pasted this code in Startup.cs as explained here in tutorial

...
Type
Question
C# ASP.NET Keyword-not-supported

Page 1 of 10