Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • Last Modified:

Very Very Simple Rich Text Editor

I have a text box where users can enter News Items, I need a really simple
TextBox, everything I have looked at looks way to over the top.

As information is stored in a databse and then presented using CSS styling I just need them to be able to
write a few setences and for br> -tages to be inserted.

So the following item would be inputed

The administrators are in and the future looks bad for the workers of Rover. So why did the deal fall apart? The administrators are in and it looks like bad for the workers of Rover.

So why did the deal fall apart? And who if anyone was to blame? Already the Conservatives have accused the government of undermining the delicate negotiations.

 But others say it was Rover's management that bears responsibility, for failing to persuade Shanghai Automotive that the company was worth investing in. Our business correspondent Faisal Islam reports.

Would be saved in Database and Display e.g BR tags added

The administrators are in and the future looks bad for the workers of Rover. So why did the deal fall apart? The administrators are in and it looks like bad for the workers of Rover.

So why did the deal fall apart? And who if anyone was to blame? Already the Conservatives have accused the government of undermining the delicate negotiations.

But others say it was Rover's management that bears responsibility, for failing to persuade Shanghai Automotive that the company was worth investing in. Our business correspondent Faisal Islam reports.
0
tclgb
Asked:
tclgb
  • 2
1 Solution
 
ovalsquareCommented:
Simply use a multiline textbox and replace any line breaks client side with the <br /> tag. I'll dig up an example....

Ted
0
 
ovalsquareCommented:
Assuming you have a textbox called TextBox1, a button called Button1, and a label called Label1 (simply for this sample to display the text formatted that you would instead be saving to your database). Make it a multiline textbox and do the following:

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Label1.Text = Replace(TextBox1.Text, Environment.NewLine, "<br>")

    End Sub

Ted
0
 
tclgbAuthor Commented:
Thanx
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now