ProductAlter.aspx.cs代码

<%@ Page Title="" Language="C#" MasterPageFile="~/HTPanel/HMaster/HPanel.Master" AutoEventWireup="true" CodeBehind="ProductAlter.aspx.cs" Inherits="HoverTreeTop.HoverTree.HoverTreePanel.HTPanel.HProduct.ProductAlter" %>
<%@ Register Src="~/htpanel/hcontrol/UcPictureAdd.ascx" TagName="PicAdd" TagPrefix="HtUc" %>
<%@ Register Src="~/htpanel/hcontrol/UCHoverTreePictureOfProduct.ascx" TagName="PicList" TagPrefix="HtUc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style>
#httProMoreinfo{
border:0px solid silver;
}#htShowHide{border:1px solid silver;background-color:darkcyan;color:white;width:160px;cursor:pointer;}
#httaddpic{
border:1px solid gray;
}
#httpropic{border:1px solid silver;margin-top:5px;}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
<h3>修改产品</h3>
ID:<asp:Literal runat="server" ID="literal_id" /><br />
标题:<asp:TextBox runat="server" ID="textBox_title" MaxLength="250" Columns="50" />
<br />编号:<asp:TextBox runat="server" ID="textBox_number" MaxLength="50" ></asp:TextBox>
<div id="httProMoreinfo">
价格:<asp:TextBox runat="server" ID="textBox_price" />
<br />辅助内容:<br /><asp:TextBox runat="server" ID="textBox_moreInfo" TextMode="MultiLine" Columns="50" Rows="6" />
<br />详细内容:<br />
<asp:TextBox runat="server" ID="textBox_content" TextMode="MultiLine" Rows="15" Columns="50" />
<br />文件名:
<asp:Literal runat="server" ID="literal_fileName" />
<br /><asp:CheckBox runat="server" ID="checkBox_isShow" Text="是否显示" /> <asp:CheckBox runat="server" ID="checkBox_isTop" Text="是否置顶" />
<br />
添加时间:<asp:Literal runat="server" ID="literal_addTime" /></div>

<asp:Button Text="修改产品" runat="server" ID="button_alter" OnClick="button_alter_Click" />
<br /><asp:Literal runat="server" ID="literal_tips" />
<div id="httaddpic">
<HtUc:PicAdd runat="server" ID="picAdd1" Visible="false" />
</div>
<div id="httpropic">
<h4>产品图片:</h4>
<HtUc:PicList runat="server" ID="picList1" /></div>
<script>
$("#httProMoreinfo").before("<div id='htShowHide'>更多信息</div>");
$("#htShowHide").on("click", function () {
if ($("#httProMoreinfo")[0].style.display != 'none')
$("#httProMoreinfo").hide();
else
$("#httProMoreinfo").show();
})

if (hovertreeGetUrlParam('moreinfo') == '0')
{
$("#httProMoreinfo").hide();
}
</script>
</asp:Content>