insert into table (name) values (N'?????') this code is working when im inserting in sql server, how we insert it bu asp.page.insert into table (name) values (N'?????') this code is working when im inserting in sql server, how we insert it bu asp.page.Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hanook159 reputationPosted Oct 30, 2013, 11:35 PM EDT
Sample example to insert unicode data.....
Rajeev KumarRank #1,937 · 758 reputationPosted Oct 31, 2013, 12:16 AM EDT
Sanjay KumarRank #561 · 4.3K reputationPosted Oct 31, 2013, 12:31 AM EDT
try this
http://www.dotnetfunda.com/articles/show/1132/insert-hindi-font-from-aspnet-web-page-to-sql-server-database
Hanook159 reputationPosted Oct 31, 2013, 12:31 AM EDT
http://stackoverflow.com/questions/18932038/how-to-insert-unicode-string-into-sql-server-using-c-sharp
http://www.c-sharpcorner.com/uploadfile/eb5fab/insert-hindi-font-in-Asp-Net-web-page-to-sql-database/
http://forums.asp.net/t/1831385.aspx
Rajeev KumarRank #1,937 · 758 reputationPosted Oct 31, 2013, 1:57 AM EDT
my problem is occure here
"i have already done .
but when it is inserting on the code behind page it is not in return niter hindi nor inserting the database in hindi formate"
Hanook159 reputationPosted Oct 31, 2013, 2:41 AM EDT
I took One TextBox and one Button... Click of button is for saving data to database...
Enter TextBox text is ???????
(Hindi word Dhanyavad)
protected void btnSave_Click(object sender, EventArgs e)
{
string connectionstring = "Data source=SDW2249; Initial Catalog=study; Integrated Security=true";
SqlConnection conn = new SqlConnection(connectionstring);
conn.Open();
SqlCommand cmd = new SqlCommand("Insert into TblHindi (val) values (@HindiText)", conn);
string HindiText = txtHindi.Text;
cmd.Parameters.Add("@HindiText", SqlDbType.NVarChar, 50).Value = HindiText;
int rowsInserted = cmd.ExecuteNonQuery();
conn.Close();
}
Rajeev KumarRank #1,937 · 758 reputationPosted Oct 31, 2013, 2:51 AM EDT
Hanook159 reputationPosted Oct 31, 2013, 2:55 AM EDT
Rajeev KumarRank #1,937 · 758 reputationPosted Oct 31, 2013, 3:05 AM EDT
Sanjay KumarRank #561 · 4.3K reputationPosted Oct 31, 2013, 3:13 AM EDT
Hanook159 reputationPosted Oct 31, 2013, 3:14 AM EDT
I just copied Hindi word from the below URL and entered into text box then click on Button...
http://www.codeproject.com/Questions/541935/Insertplusnon-EnglishplusdataplusintoplusSqlplusse
Mine is working as expected.. inserted into database too.......
What is the Datatype you have in DB?
Rajeev KumarRank #1,937 · 758 reputationPosted Oct 31, 2013, 3:17 AM EDT