Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi all,

This is my source code:

XML
<form id="form1" runat="server">
   <div>
   <asp:ScriptManager ID="ScriptManager1" runat="server">
   </asp:ScriptManager>
   <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0"
       Height="1191px" style="margin-bottom: 103px" Width="823px" AutoPostBack="True">
       <asp:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1">

           <ContentTemplate>
                              <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                               <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                              <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                               <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" ></asp:Button>
           </ContentTemplate>
       </asp:TabPanel>
   </asp:TabContainer>
   </div>
   </form>


And my code is:

VB
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)

      TextBox5.Text = TextBox3.Text + TextBox4.Text
  End Sub



And I am getting "Microsoft JScript runtime error: 'Sys.Extended.UI' is null or not an object" error in 4th line of the below jscript code:

<script type="text/javascript">
//<![CDATA[
Sys.Application.add_init(function() {
$create(Sys.Extended.UI.TabPanel, {"headerTab":$get("__tab_TabContainer1_TabPanel1"),"ownerID":"TabContainer1","wasLoadedOnce":false}, null, {"owner":"TabContainer1"}, $get("TabContainer1_TabPanel1"));});
Sys.Application.add_init(function() {
$create(Sys.Extended.UI.TabContainer, {"activeTabIndex":0,"autoPostBackId":"TabContainer1","clientStateField":$get("TabContainer1_ClientState"),"onDemand":false,"tabStripPlacement":0,"useVerticalStripPlacement":false}, null, null, $get("TabContainer1"));

Can any one help me to overcome this kind of error?
});
Posted
Comments
JoCodes 9-Dec-13 7:50am    
Are you using ajax control toolkit?
Member 10419145 9-Dec-13 8:23am    
Yes

1 solution

Register your page with the Ajax Control toolkit and use Ajax ScriptManager instead of Asp Script Manager as below.

<asp:toolkitscriptmanager id=""ToolkitScriptManager1″" runat=""server"" combinescripts=""false"" xmlns:asp="#unknown"></asp:toolkitscriptmanager>


reference http://forums.asp.net/t/1875814.aspx[^]

Hope this helps...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900