Wednesday, October 31, 2012

Seo From master page in asp.net

PRODUCT.ASPX

<!-- Replace lblProductTitle with the name of the variable that contains your product title.
Make sure the value is set in the code behind page. -->

<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=lblProductTitle.Text%> &raquo; Test.com</title>
<meta name="description" content="Get widgets: low prices and free 
shipping at Test.com" runat="server" id="description" />

PRODUCT.ASPX.VB

'Make sure this import statement appears at the top of the page.
Imports System.Web.UI.HtmlControls



'Put this code in DataBind() or some other subroutine that runs on page load. 
'Replace lblProductTitle with the variable containing your product title.

description.Attributes("content") = " Get widgets: low prices and free shipping at 
Test.com. " & lblProductTitle.Text & "available for less."

No comments :

Post a Comment