p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 29th, 2003, 01:56 PM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to joevnvdvc
Default Text Editing/Modification in VB.Net/ASP.Net

I'm not exactly sure if this is the proper forum for this, if you think there are other forums more appropriate feel free to inform me.

I'm using ASP.Net with the codebehind as VB.Net to create a text editor for my messageboard with a backend SQLServer database holding the messages. The messageboard is in working condition and is mainly composed of a datalist with a ItemTemplate and editTemplate mode. Adding modifications to the text itself is fairly easy, simply a matter of adding html tags such as <b> </b>. I was able to provide functionality to allow the user to select/highlight a piece of text and click on a button in the edit mode leading to the text being modified with the html tags, uploaded to the database, and displayed properly formatted in the view mode. I haven't figured out how to turn off formatting if the text is formatted already--as in if you have a word that's in bold font, and you select that word and click on bold again, you'd expect it to be reverted back to normal-not bold anymore.
That isn't the main issue though. The user is unsatisfied with the implementation of the text editor section. He wishes it to be like ms word in that when you format a piece of text, it shows the text format change immediately right there. In addition he does not wish to see the html tags. I've tried the textbox control and the label control, and they work differently in displaying the text. The label control will display the text properly formatted, but does not allow editing such as deletion, adding, modification of words. The textbox will display the html tags and allows editing. I have been unable to find a control that combines the best of both worlds--that is, allows editing and displays the text properly formatted. If there is such a control, please let me know.
Failing that, I placed both a textbox and a label on the edit template linked to the message in the database. I used code to eliminate all html tags from the text in the textbox. I was hoping to find a way to link the text in the textbox with the text in the label in such a way that when someone modifies/adds/deletes text in the textbox, it gets reflected in the label. The onchange property of the textbox would seem to support that. However, when I invoke the update method in the textbox, it updates the database but goes back to the view page. I would like help in finding a way to link the textbox and the label in the manner described above.
If there are any further questions or details that I can answer/provide, let me know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import text file to MS Access, Asp.net(VB) rykie Visual Web Developer 2005 1 April 12th, 2008 04:06 AM
Online editing in asp.net bneeraj General .NET 0 February 3rd, 2005 09:32 AM
Editing in Datagrid with ASP.NET rotsey General .NET 0 October 22nd, 2004 02:38 AM
.NET Text / HTML editing problem clickco General .NET 3 May 12th, 2004 03:47 PM
ASP.Net/VB.Net Text Editor joevnvdvc Classic ASP Basics 0 July 29th, 2003 04:56 PM



All times are GMT -4. The time now is 06:14 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc