checkbox和table
来源:互联网 发布:sql数据库中无法登陆 编辑:程序博客网 时间:2024/06/06 08:38
前台:
<div id="ISO"
style="position:absolute; top:110px; left:330px; height:309; width:309px; padding:10px 20px 0; display:none; background:lightblue;text-align:left; border:2px solid #5d3f0c;z-index:999; font-size:12px; height: 221px;">
<table style="width: 103%; height: 209px;" border="1" cellpadding="1" cellspacing="1">
<tr>
<td colspan="4" style="font-size: large; font-weight: 700; font-family: 隶书" align="center">
ISO认证投资
</td>
</tr>
<tr>
<th width="20%" align="center">操作项
</th>
<th width="17%" align="center">ISO名称
</th>
<th width="30%" align="center">投资总时间
</th>
<th width="33%" align="center">剩余投资时间
</th>
</tr>
<tr align="center">
<td>
<asp:CheckBox ID="checkbox9000" runat="server" />
</td>
<td>
<asp:Label ID="iso9000" runat="server" Text="ISO9000"></asp:Label>
</td>
<td>2年
</td>
<td >
<asp:Label ID="last9000" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr align="center">
<td>
<asp:CheckBox ID="checkbox14000" runat="server" />
</td>
<td>
<asp:Label ID="iso14000" runat="server" Text="ISO14000"></asp:Label>
</td>
<td>2年
</td>
<td>
<asp:Label ID="last14000" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr>
<td colspan="4" align="center">
<asp:Button ID="sureiso" runat="server" Text="确认投资" Height="20px"
Width="72px" onclick="sureiso_Click"/>
<asp:Button ID="quxiaoiso" runat="server" Text="取消" Height="20px"
Width="72px" onclick="quxiaoiso_Click"/>
</td>
</tr>
</table>
</div>
后台cs:
protected void sureiso_Click(object sender, EventArgs e)
{
string tdid = Request.Cookies["tdid"].Value;
int n = 0;
Model.iso iso = new Model.iso();
BLL.iso blliso = new BLL.iso();
if (checkbox9000.Checked)
{
iso.stuid = 1;
iso.isoname = iso9000.Text.ToString();
iso.needseason = 2;
iso.lastseason = 1;
int result = blliso.set(iso);
n += result;
}
if (checkbox14000.Checked)
{
iso.stuid = 1;
iso.isoname = iso14000.Text.ToString();
iso.needseason = 2;
iso.lastseason = 1;
int result = blliso.set(iso);
n += result;
}
if (n == 0)
Response.Write("<script language = javascript>alert('ISO认证投资成功!')</script>");
else
Response.Write("<script language = javascript>alert('对不起,ISO认证投资失败!')</script>");
Page.ClientScript.RegisterStartupScript(this.GetType(), "", "tanchu(" + tdid + ")", true);
}
- checkbox和table
- 演示checkbox和table的用法
- cocos2dx用checkbox实现单选框和button实现table按钮
- table表格的checkbox的全选和选中
- asp.net 动态生成带有checkbox 的 table ,checkbox 选中和取消 行变色
- Table Multiple checkbox AngularJS
- table中checkBox对齐问题
- jQuery之实战(checkbox,table)
- Table 组件使用指南:使用CheckBox组件保存和显示Boolean类型字段
- jquery中字符串求和,并且求出一个table中所有checkbox的被选中的和
- jQuery_review之table中根据行选中,进行背景变色和checkbox选中
- Table 组件使用指南之四:使用CheckBox组件保存和显示Boolean类型字段
- html table中嵌入checkbox实现全选
- javascript 获取HTML table radiobutton/checkbox
- js操作select,radio,checkbox,table
- 练习取Table下的CheckBox控件
- 关于jsp页面table 实现checkbox复选
- boostrap table插件的分页与checkbox
- 直方图
- Visual Studio 2008简体中文试用版(90天)变成永久正式版的两种方法
- c++ 之类的前置声明
- SQL语句技巧记录(Oracle + MySQL)
- 失落的嵌入式 英特尔强推MeeGo意欲何为
- checkbox和table
- 利用JavaScript弹出div层,以及递归调用
- 程序员如何追女孩
- 《深入理解Linux内核》学习日志
- Linux内核之旅
- CONSTRAINT
- 关于flex lib project的使用情况心得
- 认清C++语言之《模板特化specialization》
- 输入一个数n,然后打印出2的n次方