我前台有个TextBox id="TxtMessage" 有个CheckBox id="ChechBox2"当CheckBox.Checked TxtMessage的文本高度变成800px
当!CheckBox.Checked TxtMessage的文本高度变成200px如果后台无法实现对前台的文本属性。那如何做? 给个示例,谢谢
当!CheckBox.Checked TxtMessage的文本高度变成200px如果后台无法实现对前台的文本属性。那如何做? 给个示例,谢谢
解决方案 »
- 哪位有aspnet图片批量上传控件啊?
- Winform mid子窗体的标题栏
- 我要做一个类是QQ秀的网站;请高手指点
- System.Data.DataRow dr = dt.NewRow();
- 有关session还有什么更好的用法吗?
- 有两个小问题,请大家帮忙:firefox不执行。IE下正常。
- 163的邮件服务器是不是死掉了
- 顺便问一下,怎么才能得到可用分啊?我记得以前每天都会自动增加20分可用分。。。
- 子页面如何获取父页面的Request.QueryString参数值?
- 360浏览器不支持js的onbeforeunload函数,如何解决
- [请教]请教一下asp.net多语言系统的解决方案
- 急!!!Asp.net后台改变前台某控件的属性
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="Questions_C.WebForm3" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:CheckBox ID="CheckBox1"
runat="server" AutoPostBack="True"
oncheckedchanged="CheckBox1_CheckedChanged" Text="IS" />
</div>
</form>
</body>
</html>
后台
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;namespace Questions_C
{
public partial class WebForm3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{ } protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
if (this.CheckBox1.Checked == true)
{
TextBox1.Height = new System.Web.UI.WebControls.Unit(800);
}
else
{
TextBox1.Height = new System.Web.UI.WebControls.Unit(500);
}
}
}
}