Hello,
I am running VS 2012 and downloaded and installed AjaxControlToolKit 4.5 via Nuget, and i am trying to learn how to use this kit and wrote a very simple page trying to use tabs and i keep getting this error no matter what i do or change:
As soon as i run the page it pops up an error that says Client Function is undefined
And in the debugger this is whats highliighted
Sys.Application.add_init(function() {
$create(Sys.Extended.UI.TabPanel, {"headerTab":$get("__tab_ctl02_ctl00"),"onDemandMode":2,"ownerID":"ctl02","scrollBars":4,"wasLoadedOnce":false}, null, {"owner":"ctl02"}, $get("ctl02_ctl00"));
});
Sys.Application.add_init(function() {
$create(Sys.Extended.UI.TabContainer, {"activeTabIndex":1,"clientStateField":$get("ctl02_ClientState"),"onDemand":true,"tabStripPlacement":0,"useVerticalStripPlacement":true}, {"activeTabChanged":ClientFunction}, null, $get("ctl02"));
});
This is the code to my test page.
====================================
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title></head><body><form id="form1" runat="server"><div><asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true" SupportsPartialRendering="true" CombineScripts="false" /><asp:TabContainer runat="server"
OnClientActiveTabChanged="ClientFunction"
Height="150px"
Width="400px"
ActiveTabIndex="1"
OnDemand="true"
AutoPostBack="false"
TabStripPlacement="Top"
CssClass="ajax__tab_xp"
ScrollBars="None"
UseVerticalStripPlacement="true"
VerticalStripWidth="120px"><asp:TabPanel runat="server"
HeaderText="Signature and Bio"
Enabled="true"
ScrollBars="Auto"
OnDemandMode="Once"></asp:TabPanel></asp:TabContainer></div></form></body></html>Can someone please help me out with this.
Thak you