First, configure the Web. config of the Asp.net website.
Add the following two lines under the <configuration> tab:
1 < Configsections > 2 < Section Name = "Extaspnet" Type = "Extaspnet. configsection, extaspnet" /> 3 </ Configsections > 4 < Extaspnet Language = "Zh_cn" Enableajax = "True" Theme = "Blue" />
Next, add the following under the <system. Web> label:Code:
1 < Pages > 2 < Controls > 3 < Add Assembly = "Extaspnet" Namespace = "Extaspnet" Tagprefix = "Ext" /> 4 </ Controls > 5 </ Pages > 6 7 < Httpmodules > 8 < Add Name = "Extaspnetscriptmodule" Type = "Extaspnet. scriptmodule, extaspnet" /> 9 </ Httpmodules >
Then add the <Ext: pagemanager> label on the default page (required for each page)
View code
1 <% @ Page Language = " C # " Autoeventwireup = " True " Codefile = " Default. aspx. CS " Inherits = " _ Default " %> 2 3 <! Doctype HTML public " -// W3C // dtd xhtml 1.0 transitional // en " " Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " > 4 5 <HTML xmlns = " Http://www.w3.org/1999/xhtml " > 6 <Head runat = " Server " > 7 <Title> No title page </title> 8 </Head> 9 <Body> 10 <Form ID = " Form1 " Runat = " Server " > 11 <Ext: pagemanager runat = " Server " /> 12 13 </Form> 14 </Body> 15 </Html>