Hi all bit of a two question in one here.
firstly im creating a site that is going to be multi language so all copy on the site needs to be changable. to do this ive given each tag on the page and id and runat=server for eg
<h1 id="siteH1" runat="server">Page h1 here</h1>
then i have a db table with a list of id's in 1 field and the copy in the other. so for get i have
siteH1 Page h1 here
now to my questions firstly when i get my results how do i convert the string variable "siteH1" into and object so i can do
siteH1.InnerHtml = PageConent
and secondly ive tried numerous ways but how do i check to find out if the element id exists and if not carry on. no matter what i try i keep getting the error
"The variable 'blartest' does not exist in the current context
the reason i need to check is that i have numerous pages with different tags on each page.