|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Dec 2004
Location: At My Desk!!
Posts: 1,620
|
Unable to cast .HtmlGenericControl as .HtmlMeta
Guys,
I have some code I have just moved to another machine running IIS7 (the same as my web server). When I try and run it on the new machine I am getting this invalid typecast error. I am not sure why it doesn't work. Both machines are running the same version of ASP.NET. My tag is declared like: Code:
<meta name="keywords" id="lbSiteKeywords" runat="server" /> Code:
lbSiteKeywords: System.Web.UI.HtmlControls.HtmlMeta; Code:
lbSiteKeywords := Page.Master.FindControl('lbSiteKeywords') as HtmlMeta;
|
|
|
|
|
|
#2 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Dec 2004
Location: At My Desk!!
Posts: 1,620
|
Oh dear. Ignore me. I added runar="server" to the <head> html tag and didn't notice.
![]() |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 17:52.









Hybrid Mode
