Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
HTML Textbox size comparision in c#
March 18, 2011
Say for example my sample input file is,
Tag name: input
Tag name: input
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
Posted Date: March 18, 2011 Points: 20
Split on ';' character for value of Attributes and check the third element and then remove double quotes(") from this array element and then again split it on '=' character. Finally you will get the size value in second newly created array element. Compare and you are done.
You can also use string.Remove and string.Substring functions to remove splitting operations.
Hope this helps
Hope this helps.
Thanks & Regards,
To post reply
Related Questions Related Questions
How to fill in html textbox from (c# ) windows application
Add TextBox dynamically
ASP.Net TextBox Leave event..
How can we Validate in DataGrid textbox
How to validate textBox for E-mail Id in C#.net
textbox validation in windows applcation..
textbox events in windows application..
how to set html attributes to asp.net controls
fixed size in datagrid in ASP .NET
display total records in textbox?
Latest Forum Questions From The Same Category
To Achieve draw wave form from speaker outputs.
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend