Google Answers Logo
View Question
 
Q: Programming ( No Answer,   2 Comments )
Question  
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.
Answer  
There is no answer at this time.

Comments  
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.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy