Home
Do you know what to do with a work around?
  v3.0 Posted at 5/08/2019 4:16 PM by Matthew Wicks

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.

  1. Comment in the code with URL to an existing or new Suggestion
  2. Create a Suggestion to .NET 3 that points to blog post


"This is a workaround as per the suggestion 
"[URL]

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)
' Fix for pages that allow edit in grids
Me.FindControls(Of System.Web.UI.Timer).ForEach(Sub (c) c.Enabled = False)
End Sub

Figure: Work around code in the Page Render



Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:

    Comments: