0

This is weird. I declare a web user control on a asp.net web page like so

print("<%@ Register Src="~/Controls/blah.ascx" TagName="blahCtrl" TagPrefix="cc" %>");

I don't have problem with it until today in the code behind where it give me name blah is not declared error. does anyone know what cause this?

0

1 Answer 1

2

Try registering it on the .aspx source page not the .aspx.cs page.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.