aspx thread: Editing an item in a DataList, but changing its value in a functi
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
I have a datalist with an Edit button. Upon clicking on it, the user is
provided w/ the text boxes to edit.
However, I want to change a value of the textbox beforehand, so that the <br
/> tags are changed to \n characters.
My item edit sub is:
Public Sub DoItemEdit (S as System.Object, E as
' Edit a record
dlMessages.EditItemIndex = E.Item.ItemIndex
E.Item.FindControl ("POSTTEXT").Text = "Err"
That doesn't work. Can anyone suggest a way to edit the value of the textbox
before presenting it to the user? Thanks!
Web Application Programmer
Leviton Voice & Data