asp.net ajax控件tab扩展,*啊,秒杀其它插件

时间:2021-03-12 20:01:33

说明:asp.net ajax控件tab要设置width和height,而且在线文本编辑器放能够放入tab中,也必须是asp.net的控件型在线文本,例如fckeditor,下面是我设置好的配置。

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="flxg.aspx.cs" Inherits="flxg"
validateRequest="false" enableEventValidation="false" StylesheetTheme="xktheme" Theme="xktheme" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register src="UserDataPager.ascx" tagname="UserDataPager" tagprefix="uc1" %>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>分类编辑</title>
<style type="text/css">
.auto-style1 {
width:575px;
height:618px;
}
html {
font-size:small;
background-color:aliceblue;
}
</style>
<link href="sheet/StyleSheet1.css" rel="stylesheet" />

</head>
<body style="width:580px;height:620px;background-color:aliceblue;margin:auto;">

<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div style="margin:auto">
<center>
<ajaxToolkit:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="618" Width="575" BackColor="AliceBlue">
<ajaxToolkit:TabPanel runat="server" ID="TabPanel1">
<HeaderTemplate>
新闻浏览
</HeaderTemplate>
<ContentTemplate>
<asp:Panel runat="server" Width="565px" Height="608px">
<table style="width:550px;height:605px; float:left;">
<tr>
<td style="vertical-align:top;text-align:left;">

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="AliceBlue" CssClass="grid" DataKeyNames="ID" OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting" PageSize="12" style="text-align: center" Width="550px" Height="555px">
<AlternatingRowStyle CssClass="alternating" />
<Columns>
<asp:BoundField DataField="ID" HeaderText="编号" Visible="False">
<ItemStyle Width="120px" />
</asp:BoundField>
<asp:BoundField DataField="bt" HeaderText="标题">
<ItemStyle Width="475px" />
</asp:BoundField>
<asp:TemplateField HeaderText="修改">
<ItemStyle Width="30px" />
<ItemTemplate>
<asp:LinkButton ID="Lbtn_xg" runat="server" ToolTip='<%# Eval("ID") %>' OnClick="Lbtn_xg_Click">修改</asp:LinkButton>

</ItemTemplate>
</asp:TemplateField>
<asp:CommandField HeaderText="删除" ShowDeleteButton="True" >
<ItemStyle Width="30px" />
</asp:CommandField>
</Columns>
<HeaderStyle CssClass="header" />
<RowStyle CssClass="row" />
<SelectedRowStyle CssClass="selectrow " />
</asp:GridView>

</td>
</tr>
<tr>
<td>

<center><uc1:UserDataPager ID="UserDataPager1" runat="server" /></center>

</td>
</tr>
<tr>
<td><center><asp:Label ID="lbl_g_ts" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Lbl_flbt" runat="server" Visible="False"></asp:Label>
</center> </td>
</tr>
</table>
</asp:Panel>

</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel runat="server" ID="TabPanel2">
<HeaderTemplate>
修改新闻
</HeaderTemplate>
<ContentTemplate>

<table align="left" style="width:525px;height:618px;float:left;">
<tr>
<td style="text-align: center">
<asp:Label ID="Label1" runat="server" Font-Size="Small"></asp:Label>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;<table>
<tr>
<td>标题</td>
<td><asp:TextBox ID="tbx_bt" runat="server" Height="20px" Width="460px"></asp:TextBox>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" Width="460" Height="530">
</FCKeditorV2:FCKeditor>
</td>
</tr>
<tr>
<td style="text-align: center;height:20px;margin-top:2px"> <asp:Button ID="Button1" runat="server" Text="修改公告" OnClick="Button1_Click" style="text-align: left" /> &nbsp;<asp:Label ID="Label_czjg" runat="server" ForeColor="Red"></asp:Label>
</td>
</tr>
</table>
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
</center>
</div>

</form>
</body>
</html>