Register | Login  
 
Forum Minimize
SearchForum Home

       WorkControl-UserManager Module (2 forums) WorkControl-UserManager Module (2 forums)
          Bugs Report or How-To-Use Questions Bugs Report or How-To-Use Questions
          Feature Requests Feature Requests
       WorkControl-UserDirectory Module (2 forums) WorkControl-UserDirectory Module (2 forums)
          Bugs Report or How-To-Use Questions Bugs Report or How-To-Use Questions
          Feature Requests Feature Requests
       WorkControl-UserImport (2 forums) WorkControl-UserImport (2 forums)
          Bugs Report or How-To-Use Questions Bugs Report or How-To-Use Questions
          Feature Requests Feature Requests
       WorkControl-BulkEmail Module (2 forums) WorkControl-BulkEmail Module (2 forums)
          Bugs Report or How-To-Use Questions Bugs Report or How-To-Use Questions
          Feature Requests Feature Requests
       WorkControl-PortalSSO Module (2 forums) WorkControl-PortalSSO Module (2 forums)
          Bugs Report or How-To-Use Questions Bugs Report or How-To-Use Questions
          Feature Requests Feature Requests
       WorkControl-EmailOpt (2 forums) WorkControl-EmailOpt (2 forums)
          Bugs Report or How-To-Use Questions Bugs Report or How-To-Use Questions
          Feature Requests Feature Requests
       WorkControl-AutoLogin (2 forums) WorkControl-AutoLogin (2 forums)
          Bugs Report or How-To-Use Questions Bugs Report or How-To-Use Questions
          Feature Requests Feature Requests
  Forum
 Possible Bug in SecurityRoles.ascx.vb
 
henslecd
4 posts
Joined
8/15/2008

Possible Bug in SecurityRoles.ascx.vb
Posted: 02 Feb 10 8:35 PM

We have been using WorkControl since November 2008, and  are still currently using whatever version from that period.  We haven't upgraded.

Today we imported our 275,000 users -- after that the page that uses the WC module would not load.

After doing a SQL trace, we found that SecurityRoles.ascx.vb has code that calls 6 SP's for every user in the aspnet membership tables.

The code is the DataBind() call at line 479.  Here is the actual method.

Public

Overrides Sub DataBind()MyBase.DataBind()'this needs to execute always to the client script code is registred in InvokePopupCal

cmdEffectiveCalendar.NavigateUrl = DotNetNuke.Common.Utilities.Calendar.InvokePopupCal(txtEffectiveDate)

cmdExpiryCalendar.NavigateUrl = DotNetNuke.Common.Utilities.Calendar.InvokePopupCal(txtExpiryDate)

 

 

cmdExpiryCalendar.Text = calendarText

cmdEffectiveCalendar.Text = calendarText

 

Dim localizedCalendarText As String = Localization.GetString("Calendar")Dim calendarText As String = "<img src='" + ResolveUrl("~/images/calendar.png") + "' border='0' alt='" + localizedCalendarText + "'>&nbsp;" + localizedCalendarText'Localize Headers

Localization.LocalizeDataGrid(grdUserRoles,

 

Me.LocalResourceFile)'Bind the role data to the datalist

BindData()

BindGrid()

 

End Sub

 

 

We don't actually use the security roles feature, so we commented it out and have kept on going.  However, I don't know if it was still using that same code or if there are others who have used this module that may be having this issue.  After 12,000 users we noticed it slowed (75,000 sp calls each time).

 

 

 

 

henslecd
4 posts
Joined
8/15/2008

Possible Bug in SecurityRoles.ascx.vb
Posted: 02 Feb 10 8:35 PM

We have been using WorkControl since November 2008, and  are still currently using whatever version from that period.  We haven't upgraded.

Today we imported our 275,000 users -- after that the page that uses the WC module would not load.

After doing a SQL trace, we found that SecurityRoles.ascx.vb has code that calls 6 SP's for every user in the aspnet membership tables.

The code is the DataBind() call at line 479.  Here is the actual method.

Public

Overrides Sub DataBind()MyBase.DataBind()'this needs to execute always to the client script code is registred in InvokePopupCal

cmdEffectiveCalendar.NavigateUrl = DotNetNuke.Common.Utilities.Calendar.InvokePopupCal(txtEffectiveDate)

cmdExpiryCalendar.NavigateUrl = DotNetNuke.Common.Utilities.Calendar.InvokePopupCal(txtExpiryDate)

 

 

cmdExpiryCalendar.Text = calendarText

cmdEffectiveCalendar.Text = calendarText

 

Dim localizedCalendarText As String = Localization.GetString("Calendar")Dim calendarText As String = "<img src='" + ResolveUrl("~/images/calendar.png") + "' border='0' alt='" + localizedCalendarText + "'>&nbsp;" + localizedCalendarText'Localize Headers

Localization.LocalizeDataGrid(grdUserRoles,

 

Me.LocalResourceFile)'Bind the role data to the datalist

BindData()

BindGrid()

 

End Sub

 

 

We don't actually use the security roles feature, so we commented it out and have kept on going.  However, I don't know if it was still using that same code or if there are others who have used this module that may be having this issue.  After 12,000 users we noticed it slowed (75,000 sp calls each time).

 

 

 

 

 
  Forum
 
 
 
Print  
Adsense Minimize
Print