G
Gary Wardell
Hi,
I have a free form text file, call Notes.
I want to be able to both display and edit and input this field in a
DetailsView control. This would seem to be a natural for a multiline text
box, but there doesn't seem to be one of these as a bound field in
DesignView.
The examples I've found all show using a Label in a Panel In an ItemTemplate
to display the field and a Multiline Textbox in the EditItemTemplate.
That all seems to work; so far so good and the page looks good.
Now comes the rub.
I want to be able to format the text with carrage returns.
The Label control wants these to be rendered as <br />; but the textBox
wants these rendered as CRLF.
I find there is a OnPreRender even that looks like I could replace the crlfs
with the proper new line sequence for the respective control.
Problem is, how do I refernce the Label and Textbox fields burried in the
templates in the DesignView from the PreRender event?
In desperation I tried using the textbox in the ItemTamplate and that works,
but the page looks a little funny having labels for all for the other fields
and a textbox for this one.
Gary
I have a free form text file, call Notes.
I want to be able to both display and edit and input this field in a
DetailsView control. This would seem to be a natural for a multiline text
box, but there doesn't seem to be one of these as a bound field in
DesignView.
The examples I've found all show using a Label in a Panel In an ItemTemplate
to display the field and a Multiline Textbox in the EditItemTemplate.
That all seems to work; so far so good and the page looks good.
Now comes the rub.
I want to be able to format the text with carrage returns.
The Label control wants these to be rendered as <br />; but the textBox
wants these rendered as CRLF.
I find there is a OnPreRender even that looks like I could replace the crlfs
with the proper new line sequence for the respective control.
Problem is, how do I refernce the Label and Textbox fields burried in the
templates in the DesignView from the PreRender event?
In desperation I tried using the textbox in the ItemTamplate and that works,
but the page looks a little funny having labels for all for the other fields
and a textbox for this one.
Gary