0

Hello;

I'm currently working to convert a classic ASP site to ASP.NET. I am getting the error 'Cannot convert type String to System.Web.UI.HtmlControls.GenericHTMLControls' (I'm associating frontend variable to backend). Unfortunately, Google has not been much help on this. Anyone have any pointers on this? An example of this is:

Frontend:

<div id="Message1" runat="server" /></div>

Backend:

Message1 = //verbiage here to display as message if condition is right.

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by CaffeineCoder
0

Use InnerHtml or InnerText property.

Message1.InnerHtml = "text_here";

Thanks! Does the trick.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.