This is a migrated thread and some comments may be shown as answers.

Telerik dynamically inserts extra Title tag?

7 Answers 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon A.
Top achievements
Rank 1
Jon A. asked on 02 Feb 2009, 09:10 PM
After adding radWindow to my web pages, I noticed that an additional 'title' tag appears in the < head > section of each page.  Since the extra title tag comes directly after a stylesheet link added by the rad controls, I'm assuming that the < title > tag was inserted by Telerik as well.  The extra title isn't a problem functionally, but it causes the page to fail strict XHTML validation.

See the sample below from my page.  The first title tag is actually found in the form's master page.

<head id="ctl00_head">
    <title> Sales Operations</title>

<style type="text/css" media="screen">
   @import url('/assets/stylesheet.css?lang=en&section=home&ignore_skin=0');
</style>
<!-- end styles -->

<link href="/WebResource.axd?d=RG9GbqBQXdBigncP9JT6WQE0Vs9NoO81ntAAhymzRWpelJ93aNf2M9jdYJUlFU-N0&amp;t=633674474000000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=RG9GbqBQXdBigncP9JT6WQE0Vs9NoO81ntAAhymzRWq5z4bDtQKWC40KfIzFm93Vmcl6VQ8d48D9uSiRfdkmAw2&amp;t=633674474000000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=RG9GbqBQXdBigncP9JT6WQE0Vs9NoO81ntAAhymzRWoR6rQrv17QpJO_nyZrC9kPGfaEn-hlTqvkD5iqmQdkRg2&amp;t=633674474000000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=RG9GbqBQXdBigncP9JT6WQE0Vs9NoO81ntAAhymzRWpEuI9IVDZy1XObHTQsZL0Gn9q0V-c6wJ50wxP4IiAggg2&amp;t=633674474000000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><title>

</title></head>


7 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 03 Feb 2009, 07:38 AM
Hi Jon,

RadWindow is hardly responsible for the second title tag. Please make sure that are not adding a <title> tag via a ContentPlaceHolder. In this case you will receive two <titles> with no Telerik controls on the page (see below).

If the problem persists, please send us a runnable example.


MasterPage:

<%@ Master Language="C#" %>

<!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 runat="server">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>MasterPage Title</title>
<asp:ContentPlaceHolder ID="HeadContentPlaceHolder" runat="server" />
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />

<asp:ContentPlaceHolder ID="BodyContentPlaceHolder" runat="server" />

</form>
</body>
</html>


ContentPage:

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
<title>Content Page Title Tag</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="BodyContentPlaceHolder" runat="server">

</asp:Content>


All the best,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Abdul
Top achievements
Rank 1
answered on 26 Jun 2010, 04:50 AM
Hi i would like to know how to remove the below sample code from the client side aspx page or html.
 <link href="/WebResource.axd?d=RG9GbqBQXdBigncP9JT6WQE0Vs9NoO81ntAAhymzRWpelJ93aNf2M9jdYJUlFU-N0&amp;t=633674474000000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

<head id="ctl00_ACSHead"><title>  
    BLOSSOM    | Footwear | PLV Store 
</title><meta content="Microsoft FrontPage 12.0" name="GENERATOR" /><meta content="C#" name="CODE_LANGUAGE" /><meta content="JavaScript" name="vs_defaultClientScript" /><meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema" />  
  <script language="javascript" src="Includes/JS/lightbox.js" type="text/javascript"></script>  
  <script language="javascript" src="Includes/JS/ACS.js" type="text/javascript"></script>  
<link href="App_Themes/Default/Default.css" type="text/css" rel="stylesheet" /><meta name="Keywords" /><meta name="Description" /><link href="/WebResource.axd?d=L6mJbeEF2mMPYSWxlVaUot8s34KLugHGojcWkHEihFvtORrc9W492yOFPh8xKRCdtPnp1R_la6E2PUVXapRP3A2&amp;t=634079065653181300" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=L6mJbeEF2mMPYSWxlVaUot8s34KLugHGojcWkHEihFvycHoA9UF_M7YP6hLVUAAkP-VNH3sh8eR3ZaKibx-4zNnnSGvYBFFBB_YwSnJOgCQ1&amp;t=634079065653181300" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=L6mJbeEF2mMPYSWxlVaUot8s34KLugHGojcWkHEihFtpuAkfY6ruPVL-5SHqDrbUlnzbQVNCtq7PotKi1gIVug2&amp;t=634079065653181300" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=L6mJbeEF2mMPYSWxlVaUot8s34KLugHGojcWkHEihFuQhGvi3lQXcZHqQvoQCnLf0&amp;t=634079065653181300" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=L6mJbeEF2mMPYSWxlVaUot8s34KLugHGojcWkHEihFsAQz2JFHiiGzfH3LrxXDsPSFRYVDtLRfRT2Vq0eRz31A2&amp;t=634079065653181300" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=L6mJbeEF2mMPYSWxlVaUot8s34KLugHGojcWkHEihFuWQBcyHWGPvie_6AIoe86m0&amp;t=634079065653181300" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /></head
0
Dimo
Telerik team
answered on 28 Jun 2010, 10:47 AM
Hi Abdul,

RadControls use embedded scripts (Javascript files) and skins (CSS files), which are registered on the page with the <script> and <link> tags that you see. In order to disable these, you must disablethe embedded scripts and skins and register them manually. Please refer to:

http://www.telerik.com/help/aspnet-ajax/disabling_embedded_resources.html

The non-embedded versions of our scripts and skins can be found in the RadControls installation folder. You will need to copy them to your web application.

Regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Abdul
Top achievements
Rank 1
answered on 28 Jun 2010, 11:07 PM
I tried placing EnableEmbeddedScripts="false" on telerik controls, but the UI looks very ODD.

my requirement is to retain the looks as per the skins , only thing i dont want to display/List the following code scripts  at the client side .aspx page. is there any other way to solve this problem?

0
Dimo
Telerik team
answered on 29 Jun 2010, 12:12 PM
Hi Abdul,

As explained earlier, when you disable the embedded scripts, you still need to register them manually as non-embedded files, because the controls' functionality (and sometimes layout) depend on these scripts. Did you register all required scripts as non-embedded resources?

Furthermore, the Microsoft AJAX client library is also registered as embedded script files.

Why you want to disable the embedded scripts?

Sincerely yours,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Abdul
Top achievements
Rank 1
answered on 01 Jul 2010, 08:36 PM
Hi Dimo,
           Actually i want to remove  the embedded css styles. so i can assign my new styles. how can i achieve this? 
0
Dimo
Telerik team
answered on 02 Jul 2010, 07:43 AM
Hi Abdul,

You need to set EnableEmbeddedSkins="false" to the RadControls that you want to use custom skins. You can also set EnableEmbeddedBaseStyleSheet="false", however, the base styles are required and you will still need to register them manually.

Please refer to our documentation:

http://www.telerik.com/help/aspnet-ajax/controlling-appearance-overview.html

(and all other appearance-related articles in the same section below this article)

In addition, each RadControl has skin-related help articles in its own documentation.

Best wishes,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Jon A.
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Abdul
Top achievements
Rank 1
Share this question
or