Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to save data with special characters
Phaneendra Chakravaram
Nov 7 2017 2:13 AM
168
Reply
here I want to update name but while updating I am getting an error because special character is there in name string but i want to save like what we were given I don't want to remove special characters same with special characters, i want to save. in db
string name = "BRAD'S STATUS";
var stdf = responseFromServer;
string str = stdf.ToString();
//string ext = str.Substring(0, str.First("/") + 1);
Console.WriteLine(responseFromServer);
conn = new SqlConnection(connstring);
conn.Open();
comm = new SqlCommand("update Ticketbookinginfo set EventPlace= '" + name + "' where ID = 1", conn);
comm.ExecuteNonQuery();
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to Create Text Box Dynamically in asp.net c#
$scope variable undefined in angular controller