Asked by:
typing in hindi

Question
-
User1477070254 posted
Hi,
I am having a text box in which i have to type in hindi as well as in english like in orkut. I dont want to install any font in the client side. i do want to use unicode. can anyone help me in this...
Thanks in advance,
Sriram.S
Wednesday, April 23, 2008 5:11 AM
All replies
-
User-503940700 posted
One option is to use IME editor (http://geekswithblogs.net/vivek/archive/2007/02/01/105121.aspx) client side for typing in Hindi and english. But for a more advanced orkut like functionality you will need to write AJAX based code which will convert english letters to Hindi Unicode at runtime.
Check these links:
http://jalaj.net/2007/03/20/hows-hindi-transliteration-in-blogger/
http://www.google.com/transliterate/indic
HTH,
Vivek
Saturday, April 26, 2008 5:34 PM -
User910780453 posted
the functions used it this API will give you an HTML text box where you can type in Hindi, You can access this HTML text box as I do like
protected void Page_Load(object sender, EventArgs e){
if(! Page.IsPostBack){
StringBuilder str = new StringBuilder();str.Append(
"<script type='text/javascript'>"); str.Append("function getValue(){");str.Append(
"var y = document.getElementById('TextBox1').value;"); str.Append("document.getElementById('HiddenField1').value = y;}");str.Append(
"</script>"); if (!Page.ClientScript.IsClientScriptBlockRegistered("GETVALUE")){
Page.ClientScript.RegisterClientScriptBlock(typeof(Page),"GETVALUE",str.ToString());}
// Onclick event on Button Event Button1.Attributes.Add("onClick", "getValue()");}
}
protected void Button1_Click(object sender, EventArgs e){
if (!HiddenField1.Value.ToString().Equals(String.Empty)){
DBAccess db = new DBAccess();db.CommandText =
"Insert into Hindi Values (N'" + HiddenField1.Value +"')"; db.CommandType = CommandType.Text;db.ExecuteNonQuery();
}
}
Hope this helps
Friday, August 22, 2008 2:57 AM -
User910780453 posted
the functions used it this API will give you an HTML text box where you can type in Hindi, You can access this HTML text box as I do like
protected void Page_Load(object sender, EventArgs e){
if(! Page.IsPostBack){
StringBuilder str = new StringBuilder();str.Append(
"<script type='text/javascript'>"); str.Append("function getValue(){");str.Append(
"var y = document.getElementById('TextBox1').value;"); str.Append("document.getElementById('HiddenField1').value = y;}");str.Append(
"</script>"); if (!Page.ClientScript.IsClientScriptBlockRegistered("GETVALUE")){
Page.ClientScript.RegisterClientScriptBlock(typeof(Page),"GETVALUE",str.ToString());}
// Onclick event on Button Event Button1.Attributes.Add("onClick", "getValue()");}
}
protected void Button1_Click(object sender, EventArgs e){
if (!HiddenField1.Value.ToString().Equals(String.Empty)){
DBAccess db = new DBAccess();db.CommandText =
"Insert into Hindi Values (N'" + HiddenField1.Value +"')"; db.CommandType = CommandType.Text;db.ExecuteNonQuery();
}
}
Hope this helps
Friday, August 22, 2008 2:58 AM -
User-379795328 posted
I want to display Indian names in Hindi on my web site, how can I use Globalization/ Localization concept of ASP.NET for this purpose?
Wednesday, December 9, 2009 12:46 AM -
User-1200560727 posted
I want to display Indian names in Hindi on my web site, how can I use Globalization/ Localization concept of ASP.NET for this purpose?
Hi Amit,
Please go through the following links:
http://msdn.microsoft.com/en-us/library/c6zyy3s9.aspx
http://www.codeproject.com/Kb/aspnet/localizationByVivekTakur.aspx
http://www.beansoftware.com/ASP.NET-Tutorials/Globalization-Localization.aspx
http://www.codeguru.com/csharp/.net/net_asp/miscellaneous/article.php/c12407
I hope it will useful to you.
Monday, February 22, 2010 4:52 AM