Welcome to MSDN Blogs Sign in | Join | Help

Multiple AxDataSource Controls in one .ascx control

If you have more than one AxDataSource control in one user control , make sure you mark the Role property of  all but one AxDataSource controls to anything other than “Provider” or “ProviderConsumer”. Otherwise you will get an error.

 In one usercontrol , only one AxDataSource control could provide the context to other controls and web parts. So only one can have the provider role.

By default the Role Property of the AxDataSource control is set to "ProviderConsumer" .  So if you have more than one control with the default set of properties. you will get Specified method is not supported error. To fix this change the role to None or Consumer.

Published Thursday, March 05, 2009 1:00 AM by meysun
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker