SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software

Development Resources Download Files for Programmer and Administrators

Development resources, articles, tutorials, code samples and tools and downloads for ASP.Net, SQL Server, R Script, Windows, Windows Phone, AWS, SAP HANA and ABAP, like SAP UI5, Screen Personas, etc.

download files Edited Master.ascx file using Response.Filter

File Details
Downloads: 2961 File Size: 1.1kB
Posted By: eralper Views: 13583
Date Added: 27 Jan 2008
Here is the edited Master.ascx file which uses Response.Filter method and calls the assembly class we have created to filter and replace the unwanted page titles and meta tags with specific desired descriptions, titles, keywords etc that are read from a MS SQL Server 2005 database.

The master.ascx imports HTMLMetaFilter namespace.

And below code is executed in the Page_Load method of the user control

string pageURL = Page.Request.Url.ToString();
Response.Filter = new HTMLMetaFilter(Response.Filter, pageURL);

The Master.ascx file is located in folder "\Themes\default\Masters" in the Community Server folder structure.

No comments exist for this file.
Copyright © 2004 - 2020 Eralper YILMAZ. All rights reserved.
Community Server by Telligent Systems