Hello,
Thanks. There is something strange with my installation. Can you help me
to find it?
I got the AJAX toolkit today and installed it. I used the binary format
and source + binary and the result is the same.
I can not see any tab panel in the toolbox
When I add the tabcontainer to my page, the toolkit is registered as
follow:
My page before adding tabpanel to it:
------------------------------------------------------------------------------------------------------------------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
Inherits="test_checkbox._Default" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<!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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
------------------------------------------------------------------------------------------------------------------------------------------------
and after I drag and drop a tabcontainer to it:
------------------------------------------------------------------------------------------------------------------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
Inherits="test_checkbox._Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<!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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<cc1:TabContainer ID="TabContainer1" runat="server">
</cc1:TabContainer>
</div>
</form>
</body>
</html>
------------------------------------------------------------------------------------------------------------------------------------------------
As you can see, tag prefix for AJAX tool kit is set to cc1 (?). When I run
this page, I am getting this error:
A ScriptManager is required on the page to use ASP.NET AJAX Script
Components.
so I add a AjaxToolkit script manager to the page:
------------------------------------------------------------------------------------------------------------------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
Inherits="test_checkbox._Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<!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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</cc1:ToolkitScriptManager>
<div>
<cc1:TabContainer ID="TabContainer1" runat="server">
</cc1:TabContainer>
</div>
</form>
</body>
</html>
------------------------------------------------------------------------------------------------------------------------------------------------
When running this page, I am getting:
"Done but errors on page"
Any suggestion?
Regards
Hello ma,
<%@ Register ...%> on the top of your page, referencing to the
ajaxToolkit
---
WBR, Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and
we miss it, but that it is too low and we reach it" (c) Michelangelo
m> Thanks for your help. What do you mean by registering AJAX Toolkit at
m> the top of page? should I add anything to the page?
m> m> I am following the same steps as shown on ajax.asp.net web page (
the
m> videos)
m> m> Regards
m> m>
Hello ma,
cc1?!
u need smth like this
<ajaxToolkit:TabContainer runat="server"
OnClientActiveTabChanged="ClientFunction" Height="150px">
<ajaxToolkit:TabPanel runat="server" HeaderText="Signature and Bio"
<ContentTemplate>
...
</ContentTemplate>
/>
</ajaxToolkit:TabContainer>
and dont forget to Register the ajaxToolkit control on the top of
your page
---
WBR, Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high
and we
miss it, but that it is too low and we reach it" (c) Michelangelo
m> <cc1:TabContainer ID="TabContainer1" runat="server">
m> </cc1:TabContainer>
m>