That's really weird. I'm not a C# guy, but could you do something like : <% Response.Write "<meta name=\"description\" content=\"" + sPage_Meta_Desc + "\">" %>
Thanks, Mark http://markphillip.com On Wed, Dec 9, 2009 at 10:37 AM, Paul <p...@codehooligans.com> wrote: > All, > > I'm trying to help out a client today and working in C#/ASP (a place I do > not know well). > > I'm adding some meta description and keywords to the pages. The logic is > all in place. But I have a small problem I just cannot find the solution > to. > > In the page header I've added the lines > > <meta name="description" content="<%=sPage_Meta_Desc%>" /> > <meta name="keywords" content="<%=sPage_Meta_Keywords%>" /> > > > When I view the test page > https://shop.wholeharvest.com/content.aspx?PgId=2&Title=About-Us the > source actually appears as > > <meta name="description" content="<%=sPage_Meta_Desc%>" /> > > <meta name="keywords" content="<%=sPage_Meta_Keywords%>" /> > > (Note the <) > > If I remove the double-quotes wrapped around the variable output this works > as expected. But this then creates invalid HTML. > > So my question is how do I echo out the respective variables within double > quotes? > > Paul > > -- > Our Web site: http://www.RefreshAustin.org/ > > You received this message because you are subscribed to the Google Groups > "Refresh Austin" group. > > [ Posting ] > To post to this group, send email to Refresh-Austin@googlegroups.com > Job-related postings should follow http://tr.im/refreshaustinjobspolicy > We do not accept job posts from recruiters. > > [ Unsubscribe ] > To unsubscribe from this group, send email to > refresh-austin-unsubscr...@googlegroups.com > > [ More Info ] > For more options, visit this group at > http://groups.google.com/group/Refresh-Austin -- Our Web site: http://www.RefreshAustin.org/ You received this message because you are subscribed to the Google Groups "Refresh Austin" group. [ Posting ] To post to this group, send email to Refresh-Austin@googlegroups.com Job-related postings should follow http://tr.im/refreshaustinjobspolicy We do not accept job posts from recruiters. [ Unsubscribe ] To unsubscribe from this group, send email to refresh-austin-unsubscr...@googlegroups.com [ More Info ] For more options, visit this group at http://groups.google.com/group/Refresh-Austin