Do you know what to do with a work around?
  v8.0 Posted at 7/09/2020 7:39 PM by Jerry Luo

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 

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?

protected override void OnPreLoad(EventArgs e)
     //Fix for pages that allow edit in grids
          if (c is System.Web.UI.Timer)
              c.Enabled = false;

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: