replace highlights

This commit is contained in:
2020-09-24 19:50:41 -05:00
parent a80ae21fd2
commit 769a640e2e
39 changed files with 180 additions and 180 deletions

View File

@@ -12,14 +12,14 @@ I got caught today in a stupid problem. But, it wasnt obvious (at least to m
## Solution
The solution was just correctly a stupid oversight on my part. I use ReSharper, so what I would do is just type the control prefix, colon then the name of the control and ReSharper would give me the suggestion to add the right Register tag. Well, ReSharper looks at it like a WebControl, not a UserControl. So, the Register tag is adds looks like this:
{% highlight csharp %}
```csharp
<%@ Register TagPrefix="ogden" Namespace="Ogden.Web.controls" Assembly="Ogden.Web" %>
{% endhighlight %}
```
It should look like this:
{% highlight csharp %}
```csharp
<%@ Register TagPrefix="ogden" TagName="BlogComments" src="BlogComments.ascx" %>
{% endhighlight %}
```
So, if youre dumb like me, make sure you have the right Register tag if youre nesting a UserControl (or using a UserControl anywhere really).