TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Phaneendra Chakravaram
NA
490
100.1k
How to save data with special characters
Nov 7 2017 2:13 AM
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();
Reply
Answers (
2
)
How to Create Text Box Dynamically in asp.net c#
$scope variable undefined in angular controller