Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 18th, 2008, 08:29 AM
Authorized User
 
Join Date: Jan 2008
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default ascx control Title

Hi
I am using an ascx control in vb.net and trying to change the title and the meta tags dynamically. But for somereason its not working...The code below is only for title but i am sure that if i manage to set the title then will be able set the meta tags aswell.

Many Thanks

--------------------------------


        Dim ID As New Sitecore.Xml.Xsl.XslHelper
        Dim iMonth As String = ID.qs("Month")
        Dim iYear As String = ID.qs("Year")
        Dim iName As String = ID.qs("Category")
        Dim Category As String = Replace(iName, "-", " ")

        If iName <> "" Then

            Title.Text = (iName)
        Else
            Title.Text = (" All Categories")


        End If

-------------------

<head>

<title ><asp:Literal ID=Title runat ="server"></asp:Literal></title>

</head>

--------------------




 
Old March 18th, 2008, 12:24 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Where are you calling that code?

-Peter
peterlanoie.blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar Control Title Doesn't Position with CSS.. kevorkian ASP.NET 2.0 Basics 5 June 19th, 2008 11:33 AM
Problem with RssReader.ascx user control retroviz BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 October 24th, 2007 07:06 PM
created a label in welcomebox.ascx control but... kherrerab BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 August 3rd, 2007 02:02 PM
Changing Page Title From User Control hugh@kmcnetwork.com ASP.NET 1.0 and 1.1 Professional 5 October 11th, 2005 08:48 AM
Include vs. User control(ascx) ajindal General .NET 4 January 8th, 2005 09:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.