HI !!! using windows application, i want to validate in datagridview two columns. In datagridview, one column is Name and another is age. my requirement is the both columns not Left blank and enter only character in name column and number only Age column thanx
varsh12
Posts
-
validation in datagridview -
split issuestatic string DecodeUnicode(string s)
{
StringBuilder sb=new StringBuilder();
while (s.Length!=0)
{
sb.Append((char)int.Parse(s.Substring(2, 4), NumberStyles.HexNumber));
s=s.Substring(6);
}
return sb.ToString();
}string s="\\u092A\\u094B\\u0937\\u093E\\u0939\\u093E\\u0930";
s=DecodeUnicode(s);I am using above code to remove "\\" into "\". But if we add some text in this string its gives error.
e.g.:string s="\\u092A\\u094B\\u0937\\u093E\\u0939\\u093E\\u0930 abc";
error msg shows: Input string doesn't match. i think this issue occur due to, i divide substring(2,4) please guide me. thanx
-
array to array copyi want to copying array values to another array. my vaue is store the following array:
string[] path = Directory.GetFiles(filedate);
and I want to copy, stored value in path into path1.
string[] path1= ???
thanx
-
special character replacementthank u very much,Luc Pattyn Sir!! u r really solved my problem and i m very happy. I always remember your suggestion. thanx. sorry for late reply.
-
special character replacementthis is my string: \u092A\u094B\u0937\u093E\u0939\u093E\u0930
i used this code:string unicodeString = HttpUtility.HtmlEncode("\u092A\u094B\u0937\u093E\u0939\u093E\u0930");
MessageBox.Show(unicodeString);it gives me answer correct as "POSHAHAR" IN HINDI FONT. BUT if we use above text as string it gives
string unicodeString = HttpUtility.HtmlEncode(above_code);
MessageBox.Show(unicodeString);the string takes value in this form: "\\u092A\\u094B\\u0937\\u093E\\u0939\\u093E\\u0930";
so, it can't work. then my problem is , how am i replace "\\" instead of "\".
-
special character replacementi WANT TO RETRIEVE EQUIVALENT VALUE OF THE GIVEN STRING. THE ABOVE CODE VALUE IN SEE IN HINDI IS "POSHAHAR".
-
special character replacementActually i am using xml file. In my xml file contains following text: \u092A\u094B\u0937\u093E\u0939\u093E\u0930 and i want to convert in correspponding letter through httpUtility.htmlEncode(). when i put above code in htmlEncode function, it works properly. when i retrieve this in C# as string it shows like: \\u092A\\u094B\\u0937\\u093E\\u0939\\u093E\\u0930. so this is not convert. please guide me.
-
special character replacementthanks, but this is not work
-
special character replacementhi how can i replace "\\" with "\". because i am using, String.Replace("\\","\"); but it does not work. thanx
-
unicode conversionhi! I have a xml file. in xml file contains data in below format. ÂôáæãUæÚU. I replace this text in unicode character. like : 092A for  094B for ô. and so on... Actually I convert above xml file in HTML page. In HTML page the unicode character is shown as above. "ÂôáæãUæÚU"-- this code means "POSHAHAR" in hindi. and I want to print POSHAHAR IN hindi. please guide me what can I do. I am using C#. thanx & Regards
-
unicode issuehi! my question is: i have taken two hindi e-paper. in first e-paper i have no problem to read it. but in 2nd e-paper the font is unable to read. the look like other character. can anyone say why? is this problem of unicode. thanx
-
reading and replacing the ini files using c#i have solved to read and replacing method. but can u tell me what the procedures to store the value as i ask in my question.
-
reading and replacing the ini files using c#hello! my requirement is to store multiple value as shown above, more or less 300
-
reading and replacing the ini files using c#hi! i have an ini files. in this file, the value is in following format: abc= mno xyz=ijk efg=pqr and so on..... my need is that i have to store the value before= (abc,xyz) in an array and after=(mno,ijk) in another array. and after storing the value in an array, replace abc with mno and so on in C#
-
entity conversion in c#thanx a lot !! Sir, your given link is very fruitful for me
-
entity conversion in c#hi !! In xml file, there are some entities. they are shown like: — &softReturn; &hTab; & i want to replace above entities in my html page their original form like: - for — & for & and so on. i used code in c#. please help me with code. thanx
-
replacing html entity [modified]thanx for ur kind attention. i am seeing th link. actually, in my xml file has & and mdash; and i write in this character code in html , an want to show the above code is in character like: & and - is there any namespace , to read entity thanx
-
replacing html entity [modified]Hi, Everyone!! I need ur help, regarding html entity replacement---- I have characters incoming from an xml template for example: & — I want to replace these in html code in c# like: & — respectively. can some one please help me with proper code. because I am fresher. waiting for your earliest reply. thanx in advance -- Modified Thursday, July 22, 2010 6:37 AM
-
display image on mouse over in java scripthii.... I want to display my image on mouseover in a div tag thanx in advance
-
java script code errorthnx for ur attention. but it gives same 16 errors: the error is : ;expected and if i remove the code it gives is erron on "onResize". said : not closed