How to save hindi data from textbox to SQL server?

simlydotnet

New member
Joined
Sep 9, 2022
Messages
2
Programming Experience
5-10
Hello Friends,

This is regarding an issue in vb.net application.

In a textbox, we have set the font of a textbox as Kruti Dev 010.

While typing the text is shown in hindi.

But when we convert it into string say,

Dim s As String = txthindiname.Text

This string shows the data in english, and vice versa the data is stored in sql as english only.

However, when we run a direct query in Sql server, the data in the table is stored in hindi text.

We have set the datatype of the field as nvarchar and in query we are using the prefix N’.

So, we believe the issue lies on the vb.net part.

Friends, we really want your help to solve this issue.

Thanks in advance.
 
Top Bottom