This code throws compilation error:
Value of type 'String' cannot be converted to 'System.Web.UI.WebControls.Literal'.
So I changed it. Now, it compiles fine in the IDE but when I try to debug it, I get the error:
Value of type 'System.Web.UI.WebControls.Literal' cannot be converted to 'String'.
So... What's going on here, and how do you set the page title?
Thanks in advance.
VB.NET:
Public Sub Page_Load()
title = "Test"
End Sub
So I changed it. Now, it compiles fine in the IDE but when I try to debug it, I get the error:
VB.NET:
Public Sub Page_Load()
Dim lit As Literal = New Literal()
lit.Text = "Test"
title = lit
End Sub
So... What's going on here, and how do you set the page title?
Thanks in advance.