shahab Posted January 16, 2004 Posted January 16, 2004 I want to change many aspects of a TextBox1.Text that has been highlighted by a user. Like a HTML editor but in ASP.NET,FOR EXAMPLE USER CHOOSES A PART OF THE TEXT HAS BEEN SHOWN IN TEXTBOX, Then he press a button finally he has a bold or �(formatted) text. Code: private void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e) { TextBox1.Text="<strong>"+TextBox1.Text+"</strong> "; } What are your suggestions? Thanks. Quote
kahlua001 Posted January 16, 2004 Posted January 16, 2004 TextBox1.CssClass = "myCSSClass" Then in your <style> .myCSSClass {font-weight:bold} </style> Quote
shahab Posted January 16, 2004 Author Posted January 16, 2004 Thanks.SO great.Can you Introduce an article about cssClass Properties? Quote
Administrators PlausiblyDamp Posted January 16, 2004 Administrators Posted January 16, 2004 http://www.w3schools.com/css/default.asp Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
shahab Posted February 13, 2004 Author Posted February 13, 2004 Dear PlausiblyDamp, This is the CSS Powe but Editor is sth else! I like to program an editor exactly like this site but in asp.net not php. Thanks to your help Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.