Do you know what to do with a work around?
7/09/2020 7:39 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?
protected override void OnPreLoad(EventArgs e)Figure: Work around code in the Page Render
//Fix for pages that allow edit in grids
if (c is System.Web.UI.Timer)
c.Enabled = false;
Do you feel this rule needs an update?