Re: Saving the text value to a SQL Server database

  •  09-22-2008, 9:09 AM

    Re: Saving the text value to a SQL Server database

    Hi.
     
    When I did the test above by appending "Hello World" to the text property I did get "hello World" in the database but nothing else.
     
    I have figured out something however.  If I switch from the Rich Text Editor mode to the Basic Text Box mode before submission it does record the HTML to the database.  But I would like to not ask the USER to have to do that cause I know more then a few will submit without switching first and have an empty string pas through.
     

    Here is my Page_Load  Sub:
     
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

                If Page.IsPostBack Then
                    'Page is a postback
                    updateDealerSettings() 'This is the Sub that fires the updates

                    LabelStatusMessage.Text = "Updated at " & DateTime.Now
                Else
                    'Page is not a postback
                    populateDataFields() 'This Sub reads anything that may be in the database OK.
                End If
    End Sub
     
     
     
View Complete Thread