The most basic and simplest method of adding your js/css files to the page is just adding them in the HTML source.
The following sample demonstrates adding a single .css and .js file into the <head> section of the page.
Example
<%@ Page Language="C#" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<!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>Ext.NET Example</title>
<link rel="stylesheet" type="text/css" href="example.css" />
<script type="text/javascript" src="example.js"></script>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
</form>
</body>
</html>
In the above sample:
1. The Ext.NET .js files will be loaded
after example.js.
2. The Ext.NET .css files will be loaded
before example.css.
If you require loading of the Ext.NET .js files
before example.js you can add the following <ext:ResourcePlaceHolder> at any location. The Ext.NET ResourceManager will write directly to the location of the <ext:ResourcePlaceHolder>.
Example
<%@ Page Language="C#" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<!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>Ext.NET Example</title>
<ext:ResourcePlaceHolder runat="server" />
<link rel="stylesheet" type="text/css" href="CSS PATH HERE" />
<script type="text/javascript" src="PATH HERE"></script>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
</form>
</body>
</html>
The .Mode property of the <ext:ResourcePlaceHolder> allows for further customization.
The following sample demonstrates use of the .Mode property to split rendering of the required .css and .js files by the ResourcePlaceHolder into two locations.
Example
<%@ Page Language="C#" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<!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>Ext.NET Example</title>
<ext:ResourcePlaceHolder runat="server" Mode="Style" />
<link rel="stylesheet" type="text/css" href="CSS PATH HERE" />
<ext:ResourcePlaceHolder runat="server" Mode="Script" />
<script type="text/javascript" src="PATH HERE"></script>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
</form>
</body>
</html>
Hope this helps.