在asp.net中使用选项卡容器时出现错误 [英] getting error while using tab container in asp.net
问题描述
大家好,
这是我的源代码:
Hi all,
This is my source code:
<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:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
TextBox5.Text = TextBox3.Text + TextBox4.Text
End Sub
在下面的jscript代码的第4行中,我收到"Microsoft JScript运行时错误:"Sys.Extended.UI"为空或不是对象"错误:
< 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"));
任何人都可以帮助我克服这种错误吗?
});
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?
});
推荐答案
create(Sys.Extended.UI.TabPanel,{"headerTab":
create(Sys.Extended.UI.TabPanel, {"headerTab":
get("__ tab_TabContainer1_TabPanel1 )," ownerID:" TabContainer1," wasLoadedOnce:false},空,{" owner:" TabContainer1},
get("__tab_TabContainer1_TabPanel1"),"ownerID":"TabContainer1","wasLoadedOnce":false}, null, {"owner":"TabContainer1"},
get(" TabContainer1_TabPanel1))); });
Sys.Application.add_init(function(){
get("TabContainer1_TabPanel1"));});
Sys.Application.add_init(function() {
这篇关于在asp.net中使用选项卡容器时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!