![]() |
|
![]() | ||
|
Subject:
Programming
Category: Computers Asked by: rwit-ga List Price: $2.00 |
Posted:
06 Nov 2004 09:28 PST
Expires: 06 Dec 2004 09:28 PST Question ID: 425331 |
How do I access an html meta tag from asp.net vb code (dynamically during "run time")? A code snippet would be sufficient. Thanks. |
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
Subject:
Re: Programming
From: twins78-ga on 10 Nov 2004 03:27 PST |
In ur aspx page add the following line 1. <META http-equiv='keyword' content='keyword' runat='server' id='keyword' /> delcate keyword as protected HTMLGeneric control at the class level 2. Protected keyword As HtmlGenericControl now in the page_load event of ur aspx.vb file add follwing Dim i As Integer keyword.Attributes("http-equiv") = "refresh" keyword.Attributes("content") = "30" here actually we set the meta - refresh tag like same u can set ur own attribute values dynamically becoz it will treated as server tag and that's why we can set its attributes |
Subject:
Re: Programming
From: rwit-ga on 10 Nov 2004 09:09 PST |
Thanks twins78, you are correct. I thought it should work that way but never followed through with it since the dotnet aspx editor does not recognize "ID" as an attribute of a meta tag. You're the man. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |