Have a page page1.aspx that has a label1 with text properties set say arial with font size of "large" there is a button on Page1.asp that upon its click event triggers javascript to open another window Page2.aspx. This causes a postback to occur on Page1.aspx as Page2.aspx is opened. If I dismiss Page2.aspx label1 on Page1.aspx has changed to a much larger font that previously set??? Now if I delete lable1 and place another label on the Page1 form and do not set any font properties the issue does not occur ...the font, it remains unchanged. Seems in a labels default mode, when first dragged on a webform the font properties are not set...at least this seems apparently so when viewing them in the properties window.
Anyone have any ideas...strange behaviour that seems to have no apparent answer...yet
Thanks
So you're saying the label's styling changes afterpostback? Is there another class or some style attribute beingassigned to the label, or something (like a span or table) thatsurrounds the label?
Ifwe could see the page in action, we might have a better idea of what'sgoing on; have you tried View Source to see if anything looks differentin the HTML?
As far as I beleive, check the style sheet. You might be applying dynamic style to that particular label. Try changing the name of the label and execute the same code.
0 comments:
Post a Comment