want to give cssclass to a string
-
i want to apply font size and color which i had in one of the cssclass in stylesheet.I want to apply it on the string . Can anyone please let me know how it is done.
-
i want to apply font size and color which i had in one of the cssclass in stylesheet.I want to apply it on the string . Can anyone please let me know how it is done.
Why do you want to apply a CssClass to a string variable?:confused: If you are trying to show string (or text) with specific font size , apply the CssClass to the control through which you are displaying the string. (For e.g. a Label would serve the purpose)
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
-
Why do you want to apply a CssClass to a string variable?:confused: If you are trying to show string (or text) with specific font size , apply the CssClass to the control through which you are displaying the string. (For e.g. a Label would serve the purpose)
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
that's the problem . it has to be applied to only part of the string which is text of a textbox.
-
i want to apply font size and color which i had in one of the cssclass in stylesheet.I want to apply it on the string . Can anyone please let me know how it is done.
Hi, You can assign your string value to a label and assign style sheet for that label ,... hope this will help u...
-
that's the problem . it has to be applied to only part of the string which is text of a textbox.
Ok...I think you cannot do it using a normal TextBox...Probably the other way would be to write your own custom TextBox control and render the text as according to your requirement.
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)