</tr>
</table>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</h2>
<script type="text/javascript">
function Edit() {
var tb_1 = document.getElementById("tb_1");
var tb_4 = document.getElementById("tb_4");
tb_1.style.display = (tb_1.style.display == "none" ? "" : "none");
tb_4.style.display = (tb_4.style.display == "none" ? "" : "none");
return false;
}
</script>
public partial class price_guide_uc_DescriptionBrief : System.Web.UI.UserControl
{
public event OnUpdatedEventDelegate Updated;
protected void Page_Load(object sender, EventArgs e) {
Session["itemDescription"] = lDescriptionBrief.Text;
}
protected void Save(object sender, EventArgs e)
{
lDescriptionBrief.Text = Utils.HtmlSanitizer.Sanitize(txtDescriptionBrief.Text);
if (Updated != null)
{
Updated();
}
Cancel(null, null);
}
protected void Cancel(object sender, EventArgs e)
{
phView.Visible = true;
phEdit.Visible = false;
}
protected void Edit(object sender, EventArgs e)
{
phView.Visible = false;
phEdit.Visible = true;
txtDescriptionBrief.Text = lDescriptionBrief.Text;
}
public string DescriptionBrief
{
set { lDescriptionBrief.Text = value; }
get { return lDescriptionBrief.Text; }
}
}
button
onclick
onclentclick
visible
------解决方案--------------------我感觉设置一下隐藏及显示属性不就可以吗
------解决方案--------------------