@ cerebrus Thanks for your tip. Yes, I think I can populate that string from Linq or ado.netThe big problem is that I'm totally new at that.
Can you or sombody reading this, give some hints about how I should open a MS SQL server database in order to fill the meta tags? Thank you all in advance Pablo On Wed, Apr 1, 2009 at 3:26 AM, Cerebrus <[email protected]> wrote: > > Since the "Content" property is represented as a string, you could > populate its contents the same way you would retrieve and populate any > other object from the database using ADO.NET (or LINQ). > > On Apr 1, 5:25 am, "Pablo Silvio Esquivel www.pablosilvioesquivel.com/" > <[email protected]> wrote: > > Hello everybody. > > > > In order to insert meta tags in a given page I'm using the following > > C# code in the page load event: > > > > HtmlMeta metaTag = new HtmlMeta(); > > metaTag.Name = "Keywords"; > > metaTag.Content = "great newbie code, help wanted"; > > this.Header.Controls.Add(metaTag); > > > > It works fine, but I need to read the contents from a database and not > > just the "great newbie code, help wanted" text > > > > Does anybody have a tip? > > > > Thanks. > > > > Pablo Esquivel >
