C# Forum

Ask Question   UnAnswered
Home » Forum » C#       RSS Feeds

Element 'Preview' is not a known element. as tagname making the ctrl id not recognised on CF

  Asked By: Titi    Date: Apr 14    Category: C#    Views: 1367


<uct:Preview ID="previewID" runat="server" pPath="" />

In the above line the TagName "Preview" has green underline with warning

"Element 'Preview' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing".

I have deleted the ReflectedSchema folder, re-opened the VS and the issue is still there.

This is not a massive issue on it own however it is affecting me to modify the control attribute from the code file because the control ID is not recognised, as follows

previewID.Attribute["pPath"] = pIPath;

and i am getting "The name previewID does not exist in the current context".

Thanks for your help.



No Answers Found. Be the First, To Post Answer.