Do you know what to do with a work around?
5/08/2019 4:16 PM by
If you have to use a workaround you should always comment your code and reference. You should also make a Suggestion to [Product] if you think it is something that the product should do.
- Comment in the code with URL to an existing or new Suggestion
- Create a Suggestion to .NET 3 that points to blog post
"This is a workaround as per the suggestion Figure: Always add a URL to the suggestion that you are compensating for
Exercise: Understand commenting
You have just added a grid that auto updates, but you need to disable all the timers when you click the edit button. You have found an article on Code Project (http://www.codeproject.com/Articles/39194/Disable-a-timer-at-every-level-of-your-ASP-NET-con.aspx) and you have added the work around.
Now what do you do?
Sub OnPagePreRender(ByVal sender As Object, ByVal e As EventArgs)Figure: Work around code in the Page Render
' Fix for pages that allow edit in grids
Me.FindControls(Of System.Web.UI.Timer).ForEach(Sub (c) c.Enabled = False)
Do you feel this rule needs an update?