Dear Sir,
I Have A Master Page and put there description meta tag with description content. but i want to change description on content page on page load . master page description is come on content page but i want to change description with description column on content page/
i was try your link but didnot work
https://www.aspsnippets.com/Articles/ASPNet-Meta-Tags-Programmatically-populate-Title-Keywords-and-Description-in-Page-Head-Section-from-database.aspx
this is master page
<%@ Master Language="C#" AutoEventWireup="true" EnableViewState="true" CodeFile="master.master.cs" Inherits="master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<meta http-equiv="X-UA-Compatible" content="IE=11" />
<meta http-equiv="X-UA-Compatible" content="IE=12" />
<meta http-equiv="X-UA-Compatible" content="IE=13" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
<meta name="ROBOTS" content="NOYDIR" />
<meta name="description" content="<%: Page.MetaDescription%>" />
this is content page
<%@ Page Title="" Language="C#" MasterPageFile="~/master.master" EnableViewStateMac="false" EnableViewState="false" AutoEventWireup="true" MetaDescription=" " CodeFile="content.aspx.cs" Inherits="content" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<link href="assets/css/Gallery.css" rel="stylesheet" type="text/css" />
<!--<script src="js/lightbox-2.6.min.js"></script>-->
<link rel="stylesheet" href="css/screen.css" media="screen" />
<link rel="stylesheet" href="css/lightbox.css" media="screen" />
this is code behind of course page
protected void Page_Load(object sender, EventArgs e)
{
Page.MetaDescription = "hi";
}
thanks in advance