Call us now: 1-800-449-5093

Connection string fails except in design mode

Last post 08-07-2008 2:15 PM by rzumbado. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-06-2008 11:08 PM

    Connection string fails except in design mode

    I've tried setting control's ConnectionString property at runtime in  Page_Load method in the codebehind and I get an error that the connection string is not set. I've also tried setting it in the the OnInit(EventArgs e) method and that doesn't work either. It works fine when the ConnectionString is set as an embedded attribute in the <RMB:RichMessageBoard /> element in the ASPX file.

  • 08-07-2008 2:15 PM In reply to

    • rzumbado
    • Top 25 Contributor
    • Joined on 11-06-2007
    • Costa Rica
    • Posts 53

    Re: Connection string fails except in design mode

    Hi,

    I have tested the RichMessageBoard by seting the ConnectionString at runtime and after a few tests i just realize that the OnInit method is being called first on the control and later on the WebPage.

    For now you can use the OnPreInit method instead of the OnInit method of the WebPage to set the connection string at runtime.

    I already fix this issue on the RichMessageBoard to work properly, i will be uploading the new installer in a few minutes (remember that you can download it from http://www.richercomponents.com/downloads/)

    I want to thank you for your valuable observation.

    cheers.

Page 1 of 1 (2 items)

Copyright © 1999-2008 Richer Components. All rights reserved worldwide.