资源简介
MySQL实用教程(第2版)[郑阿奇][程序源代码]

代码片段和文件信息
using System;
using System.Data;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MySql.Data.MySqlClient;
using System.IO;
namespace xscj_sql
{
public partial class AddScore : System.Web.UI.Page
{
string stukch = null;
protected void Page_Load(object sender EventArgs e)
{
this.title = “学生成绩添加“;
}
protected void GridView1_SelectedIndexChanged(object sender EventArgs e)
{
string stucj = null;
int cj = 0;
string select = ((RadioButtonList)GridView1.SelectedRow.Cells[3].FindControl(“RadioButtonList1“)).Text;
if (select == “保存“)
{
stucj = ((TextBox)GridView1.SelectedRow.Cells[3].FindControl(“TextBox1“)).Text;
if (stucj == string.Empty)
{
Response.Write(“ript>alert(‘请输入成绩!‘) ript>“);
return;
}
else
{
cj = int.Parse(stucj);
if (cj < 0 || cj > 160)
{
Response.Write(“ript>alert(‘请输入0到100之间的数‘) ript>“);
return;
}
}
}
else
{
stucj = “-1“;
cj = int.Parse(stucj);
}
string stuxh = GridView1.SelectedRow.Cells[1].Text.Trim();
string kch = DropDownList2.SelectedValue;
string connStr = ConfigurationManager.ConnectionStrings[“xscjConnectionString“].ConnectionString;
MySqlConnection conn = new MySqlConnection(connStr);
try
{
conn.Open();
string sql = null;
MySqlCommand mycommand = new MySqlCommand();
mycommand.Connection = conn;
mycommand.CommandType = CommandType.StoredProcedure;
mycommand.CommandText = “CJ_Data“;
MySqlParameter SqlStuXH = mycommand.Parameters.Add(“@in_xh“ SqlDbType.Char);
SqlStuXH.Direction = ParameterDirection.Input;
MySqlParameter SqlStuKCH = mycommand.Parameters.Add(“@in_kch“ SqlDbType.Char);
SqlStuKCH.Direction = ParameterDirection.Input;
MySqlParameter SqlStuCJ = mycommand.Parameters.Add(“@in_cj“ SqlDbType.Int);
SqlStuCJ.Direction = ParameterDirection.Input;
SqlStuXH.Value = stuxh;
SqlStuKCH.Value = kch;
SqlStuCJ.Value = cj;
mycommand.ExecuteReader();
if (stucj == “-1“)
{
Response.Write(“ript>alert(‘删除成功!‘) ript>“);
}
else
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4586 2013-11-11 11:31 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\AddScore.aspx
文件 5540 2013-11-11 15:24 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\AddScore.aspx.cs
文件 3284 2013-10-28 15:22 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\AddScore.aspx.designer.cs
文件 15872 2013-11-11 15:24 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\bin\xscj_sql.dll
文件 38400 2013-11-11 15:24 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\bin\xscj_sql.pdb
文件 72415 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_01.gif
文件 2116 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_02.gif
文件 7316 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_03.gif
文件 1351 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_04.gif
文件 1333 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_05.gif
文件 1145 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_06.gif
文件 1476 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_07.gif
文件 1388 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_08.gif
文件 1442 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_09.gif
文件 1234 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_10.gif
文件 1398 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_11.gif
文件 1347 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_12.gif
文件 1167 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_13.gif
文件 1159 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_14.gif
文件 2461 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_15.gif
文件 37825 2009-02-20 13:37 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\images\学生成绩管理系统_16.gif
文件 8862 2013-11-11 14:34 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\MasterPage.Master
文件 338 2013-10-22 09:06 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\MasterPage.Master.cs
文件 2948 2013-10-22 09:29 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\MasterPage.Master.designer.cs
文件 10033 2013-11-11 15:24 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 7949 2013-10-23 15:30 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\obj\Debug\ResolveAssemblyReference.cache
文件 601 2013-10-23 12:01 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\obj\Debug\xscj_sql.csproj.FileListAbsolute.txt
文件 15872 2013-11-11 15:24 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\obj\Debug\xscj_sql.dll
文件 38400 2013-11-11 15:24 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\obj\Debug\xscj_sql.pdb
文件 1335 2013-10-22 09:04 实习源程序\实习:ASP.NET-MySQL\xscj_sql\xscj_sql\Properties\AssemblyInfo.cs
............此处省略352个文件信息
- 上一篇:20120702武魂服务端+登陆器
- 下一篇:struts2 做的用户登陆注册系统
相关资源
- php mysql经典留言本源码 代码通俗易懂
- PHP MySQL 物流管理 数据库文件
- PHP MySQL 技术 毕业设计 物流管理系统
- php mysql 在线作业管理系统
- MySql.data.dll +使用说明
- 图书管理系统 PHP MYSQL实现
- [PHP MySQL]图书馆管理系统前后台全部代
- 基于PHP+MYSQL的学生成绩管理系统
- Spring+Struts2+Hibernate人力资源管理系统
- 我自己写php mysql聊天室
- mysql 数据库连接池
- 完整的php mysql js用户注册与登陆
- MySQL数据库用户在线注册系统
- mysql数据库驱动8.0.12版本
- mha4mysql-0.56-0.el6
- mysql_5.6.24_winx64
- MYSQL作业提交作业批改系统.zip
- Maven搭建Spring+Mybatis+MySql
- 成语首尾字用于成语接龙.sql
- MySQL中文手册api帮助文档
- linux_mysql5.1.66x86_64.zip
- oracle 到mysql转换工具
- 数据库原理实验指导书Mysql
- mysql 5.6 绿色精简版 5Mb
- mysql Premium 破解
- 深入浅出MySQL第二版本pdf
- 深入浅出MySQL.pdf
- 深入浅出mysql全文
- 全球国家及地区库,采集自腾讯QQ国内
- mysql操作练习的表数据
评论
共有 条评论