Hi there!
I've spent some time looking through forums, watching videos and going through the tutorials, but I can't seem to find an easy way to create new aspx pages in my web application, that include all the 'boilerplate' code as supplied by Telerik's new project wizard.
When I create a new project with Telerik's VSE, I get a project that looks like this:
Refer to attched file: "default_aspx_in_solution.png"
If one opens the markup for default.aspx, the 'boilerplate' code for all the Telerik AJAX 'stuff' is apparent:
However if I now create a new webforms page I get the standard template as defined by MSFT:
On large websites it will be a real pain to continuously copy and paste the Telerik 'template' into every new page that is created.
Surely there is an easy way to create a new aspx page that automatically includes all of Telerik's boilerplate code.
Can anyone help?
Thanks,
Paul.
I've spent some time looking through forums, watching videos and going through the tutorials, but I can't seem to find an easy way to create new aspx pages in my web application, that include all the 'boilerplate' code as supplied by Telerik's new project wizard.
When I create a new project with Telerik's VSE, I get a project that looks like this:
Refer to attched file: "default_aspx_in_solution.png"
If one opens the markup for default.aspx, the 'boilerplate' code for all the Telerik AJAX 'stuff' is apparent:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
<!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"
>
<
title
></
title
>
<
telerik:RadStyleSheetManager
id
=
"RadStyleSheetManager1"
runat
=
"server"
/>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
<
Scripts
>
<%--Needed for JavaScript IntelliSense in VS2010--%>
<%--For VS2008 replace RadScriptManager with ScriptManager--%>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.Core.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQuery.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQueryInclude.js"
/>
</
Scripts
>
</
telerik:RadScriptManager
>
<
script
type
=
"text/javascript"
>
//Put your JavaScript code here.
</
script
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
</
telerik:RadAjaxManager
>
<
div
>
</
div
>
</
form
>
</
body
>
</
html
>
However if I now create a new webforms page I get the standard template as defined by MSFT:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyNewForm.aspx.cs" Inherits="MyRadControlsWebApp.MyNewForm" %>
<!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"
>
<
title
></
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
</
div
>
</
form
>
</
body
>
</
html
>
On large websites it will be a real pain to continuously copy and paste the Telerik 'template' into every new page that is created.
Surely there is an easy way to create a new aspx page that automatically includes all of Telerik's boilerplate code.
Can anyone help?
Thanks,
Paul.