FreeTextBox

The no. 1 free ASP.NET HTML Editor.
Welcome to FreeTextBox Sign in | Join | Help

3.1 Text changes saved to SQL Server and retrieved successfully!

  •  10-08-2005, 6:19 PM

    3.1 Text changes saved to SQL Server and retrieved successfully!

    I was able to get version 3.1 working with my database (SQL Server 2005 SeptemberCTP) but I’m not quite sure why just yet.  My testing so far went as follows:

     

    1. Copied the sample01.aspx file from the download files into my project.  This is the sample demonstrating the use of internal resources.  Sample02.aspx demonstrates external locations.
    2. Tested to make sure that the sample worked.  I was quite surprised when it did actually work.
    3. Added a code-behind page and copied the Page_Load and SaveButton_Click methods from sample01.aspx to sample01.aspx.cs
    4. Modified the <%@Page  element to include the reference to code-behind page and inheritance attributes. 
    5. Added the code objects and code I use to populate the FTB from my database to the Page_Load method.
    6. Modified the SaveButton_Click method to include the call to my method for updating the database

    The odd thing is that the first time I ran it it worked and actually updated my database but on a second try I got the infamous invalid path message referring to the external path: "/aspnet_client/FreeTextBox/".  I checked the properties of the control and found that it had the SupportFolder property set to the external file.  I changed its value to ~FtbWebResource.axd/ recompiled and voila … my data was updated successfully.

    This test uses the design time control provided in the sample01.aspx file which btw appears very different (background, border and location of the “Free” title) than the control when it is selected from the Toolbox after adding the reference to FreeTextBox.dll.

    I will be comparing the values of the properties in the working version with those in my other test to see what is different and report back to this forum when I have resolved the issue.  I will also include full text of the code samples.

    I do not expect the resolution of this issue to solve the problem with the ADO.NET 2.0 DataSource access issue and it certainly won’t resolve the problem with the OnSaveClick property not being available when creating the control programmatically but at least it’s working here. 

    This is progress!


    Ron Cicotte
    Summer Street Systems
View Complete Thread
www.freetextbox.com