Example usage
code behind definition
public string srTitle = "";
public string srDescription = "";
public string srKeywords = "";
aspx page usage
<title><%=srTitle %></title>
<meta name="keywords" content="<%=srKeywords %>" />
<meta name="description" content="<%=srDescription %>" />
Is this usage correct ? Are there any other better, effective or etc way?
Thank you
asp.net 4 , C#
That method does work, though if you can, you would be better off setting these values in the code-behind; it will help keep your ASPX clean.
You can add meta data like:
And page title: