BUG: RecordsetNavbar's Datasource Does Not Persist

ID: Q190946


The information in this article applies to:


SYMPTOMS

On an Active Server Pages (ASP) page with a RecordsetNavbar Design-time control (DTC) and Recordset DTC, the RecordsetNavbar's datasource, as set using the "setDataSource" method, does not persist after the roundtrip to the server.


CAUSE

When you use the "setDataSource" method, you are passing an object as a parameter rather than a string or number. Objects do not persist after the roundtrip to the server.


RESOLUTION

You need to set the datasource for the Recordset DTC in its Custom property pages or upon every load of the page using the "setDataSource" method. The second solution can be done using the thisPage_onenter function.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION


function thisPage_onenter()
      {
         RSNavbar1.setDataSource(Recordset1);
      } 

Additional query words:


Keywords          : kbCtrl kbVisID600bug kbGrpASP 
Version           : WINDOWS:6.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: May 24, 1999