Skip to content

Comparing the textbox size in html using c#

aparna

Asked Mar 18, 2011, 4:32 AM EDT4 answers
Share
LinkedInX
Say for example my sample input file is,

Tag name: input
Attributes:
type="text"
name="hello"
size="49"

Tag name: input
Attributes:
type="text";
name="hello';
size="50";

Now how can i compare the size of the two textboxes... from the Tag name=input and attribute type="text" ....(size=49 && size=50)and results a mismatch result in this case

4 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Karthikeyan Anbarasan
    0
    HI,

    do you need to compare the size of the text box completely? what is ur exact requiremet?
    0
  • 0
    Hi, The input file which i have mention in the question is a text file. Now i need to retrieve the size attribute from the text file and compare them. How do i do this in c#????
    0
  • Suthish Nair
    0
    Aparna, text file means textbox control? You want to compare textbox value/content size or something else?
    0
  • Karthikeyan Anbarasan
    0
    If you want to compare the text from the file, not need to compare it using the text box. Instead u can use the StringCompare to compare the strings
    0