Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
DataBase File
posted

I have added to the tables needed to run the calendar to our database.

When i run the application it insist on connecting to an old database created to test infragistics calendar.

I disabled the old database and now i get an error stating that it can not  connect to a database.

My question is where is the connection string for the infragistics calendar set ?

Parents
  • 3707
    posted

    I believe this to be a bug, but have a work around you can try out that worked for me. Here's the steps to success:

    1. Drop WebScheduleInfo onto the Design view.
    2. Drop WebScheduleSqlClientProvider next to the WebScheduleInfo.
    3. DO NOT SET a DataSourceID for the WebSceduleSqlClientProvider, but make sure you have the WebScheduleInfoID referencing the WebScheduleInfo you dropped in the first step. (Note: For some reason if you reference a connection string with WebScheduleSqlClientProvider when your calendar is being used on a content page of a master page it will *always* fail to connect to the datasource).
    4. Drop a calendar or any of the schedule controls into the design page view. Make sure its WebScheduleInfoID is set to the WebScheduleInfo from the first step.
    5. Right click in design view and click on View Code. Paste the code below into your Page_Load event.

    WebScheduleSqlClientProvider1.Connection.ConnectionString = ConfigurationManager.ConnectionStrings["SweetSuccessConnectionString"].ConnectionString;

    Be sure to change the connection string name to whatever it's called inside your Web.Config file. Now view the page in the browser and watch the magic happen!

Reply Children