<tr class="tdbg">
<td colspan="2">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table width="100%" border="0" style="height: 176px">
<tr class="tdbg">
<td style="vertical-align: top" class="style3" align="right">
文章阅读权限:
</td>
<td>
<asp:RadioButtonList ID="rblReadstyle" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="rblReadstyle_SelectedIndexChanged"
CausesValidation="True">
<asp:ListItem Selected="True">所有人</asp:ListItem>
<asp:ListItem>只限好友</asp:ListItem>
<asp:ListItem>积分消费</asp:ListItem>
</asp:RadioButtonList>
<asp:TextBox ID="txtIntegralPay" runat="server" CssClass="inputtext"></asp:TextBox>
</td>
</tr>
<tr class="tdbg">
<td class="style3" align="right" style="vertical-align: top">
<asp:CheckBox ID="cbisComment" runat="server" Text="是否可以开设点评" AutoPostBack="True"
OnCheckedChanged="cbisComment_CheckedChanged" CausesValidation="True" />
</td>
<td>
<asp:RadioButtonList ID="rblComment" runat="server">
<asp:ListItem Selected="True" Value="1">默认评论(好中差)</asp:ListItem>
<asp:ListItem Value="2">留言式评论</asp:ListItem>
<asp:ListItem Value="3">自定义评论</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>[
我想选中“积分消费”的时候,txtIntegralPay生效,否则失效;选中cbisComment,rblComment生效,否则失效!
但不管怎么设,点了之后都是没有反应,设断点看,执行的后台的点击事件,但控件就是没有效果!
望众大侠帮下小弟!
<td colspan="2">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table width="100%" border="0" style="height: 176px">
<tr class="tdbg">
<td style="vertical-align: top" class="style3" align="right">
文章阅读权限:
</td>
<td>
<asp:RadioButtonList ID="rblReadstyle" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="rblReadstyle_SelectedIndexChanged"
CausesValidation="True">
<asp:ListItem Selected="True">所有人</asp:ListItem>
<asp:ListItem>只限好友</asp:ListItem>
<asp:ListItem>积分消费</asp:ListItem>
</asp:RadioButtonList>
<asp:TextBox ID="txtIntegralPay" runat="server" CssClass="inputtext"></asp:TextBox>
</td>
</tr>
<tr class="tdbg">
<td class="style3" align="right" style="vertical-align: top">
<asp:CheckBox ID="cbisComment" runat="server" Text="是否可以开设点评" AutoPostBack="True"
OnCheckedChanged="cbisComment_CheckedChanged" CausesValidation="True" />
</td>
<td>
<asp:RadioButtonList ID="rblComment" runat="server">
<asp:ListItem Selected="True" Value="1">默认评论(好中差)</asp:ListItem>
<asp:ListItem Value="2">留言式评论</asp:ListItem>
<asp:ListItem Value="3">自定义评论</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>[
我想选中“积分消费”的时候,txtIntegralPay生效,否则失效;选中cbisComment,rblComment生效,否则失效!
但不管怎么设,点了之后都是没有反应,设断点看,执行的后台的点击事件,但控件就是没有效果!
望众大侠帮下小弟!
解决方案 »
- 求上传文件时选择的文件过大!不经过后台直接跳到一个无法连接页面
- TabContainer内部控件取值问题
- C#报错信息,Ambiguous match found.
- Repeater显示问题
- 怎么给MasterPageFile模板页动态付值? 谢谢了啊
- 请教SqlHelper的问题?
- 急,在不行就要下岗了,我才来呀!!为什么 ??SQL Server 不存在或访问被拒绝。
- freetextbox的使用问题
- 在asp.net中是怎样实现页面中的信息与数据库连接??
- 郁闷了一天,也没搞定用ASP.net做的网页传到服务器后,匿名登录。
- 网站打不开了~~未结束的字符串常量这是什么原因,是程序还是空间问题
- js给lalel赋值,服务器端取不到
/// 如是积分消费,使积分输入框生效
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void rblReadstyle_SelectedIndexChanged(object sender, EventArgs e)
{
if (readstylevalue == "积分消费")
{
this.txtIntegralPay.Enabled= true;
}
else
{
this.txtIntegralPay.Enabled = false;
}
}
/// <summary>
/// 选中开启评论,则评论列表框生效
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void cbisComment_CheckedChanged(object sender, EventArgs e)
{
if (this.cbisComment.Checked)
{
this.rblComment.Enabled = true;
}
else
{
this.rblComment.Enabled = false;
}
}
.......其他看不出有什么错!!
看看是不是AJAX有问题!!
你设置RadioButtonList 属性 AutoPostBack="True" 试试!!
Microsoft JScript 运行时错误: Sys.WebForms.PageRequestManagerServerErrorException: 不允许进行筛选。
</Triggers>试一下;另:该功能为与用户交互的前台效果,建议使用js实现...