Hi,
I want to give my users the ability to update certain aeas of their web pages themselves.
I present each area using a formview which displays just one field from a database table which contains a row for each page and fields for each text area.
My issue is that when text is typed into the textbox to update the field (and therefor the web page) carriage returns are ignored. i.e. this message would come out as a single block of text with no paragraphs
Is there a way to achieve what I want with a single field, or have I got to specify a field for each paragraph of text I want to provide them with?
Also, In the page that does the database updating I have the code:
Code:
Partial Class Management_AddEditEvents
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Request.QueryString.Get("Id") IsNot Nothing Then
DetailsView1.DefaultMode = DetailsViewMode.Edit
End If
End Sub
Private Sub EndEditing()
Response.Redirect("Events.aspx")
End Sub
End Class
I expected the sub Enditing () to take me back to the Events.aspx page after the update has been carried out (as per page Chap 12 p422) but it doesn't :(