Click here to Skip to main content
15,913,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

I got an error in my asp.net web page.

When I am inserting data into the text box the font size of the label is normal, (i.e whatever size I declared), but when I submit the button after inserted data in the text box, the font size of label is automatically increasing for the total page.

For example:
site id is a label and beside one text box is there for that label.below i showed how that is placed in my asp.net page

i.e site id: text box1 and site name: text box2 and so on..

Like that I have so many labels and text boxes.
All are increasing the font size by default when I click the submit button.

Can you tell me how to solve that error?
What type of property or events have I to change for the font of labels.



thanks in advance®ards,
sunitha
Posted
Updated 6-Feb-11 22:31pm
v2
Comments
Dalek Dave 7-Feb-11 4:31am    
Edited for Readability.

1 solution

Have a look at this link:

http://www.codeproject.com/Messages/1908296/Font-size-increases-on-Postback.aspx[^]

It says these could be the problem.

1.You have a literal control then you set his value to this Literal1.Text =”<H1>My H1” when page load was trigger.
2.You have a label and you set his value to this Labe1.Text = “This is a <B>Bold”.
3.GridView or Datagrid Item has a HTML value with no closing Tags.
4.You have generated a DHTML code with no closing Tags. Eg. InnertHTML or OuterHTML.

Check if it helps.
 
Share this answer
 
Comments
Dalek Dave 7-Feb-11 4:31am    
Good Answer.
Anupama Roy 7-Feb-11 4:32am    
Thanks Dalek!
Sandeep Mewara 8-Feb-11 5:23am    
Good answer Anupama!
Anupama Roy 8-Feb-11 5:44am    
Thanks Sandeep!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900