Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
mentorList.aspx.cs
Package: MEIMS.rar [view]
Upload User: ah_jiwei
Upload Date: 2022-07-24
Package Size: 54044k
Code Size: 2k
Category:
ADO-ODBC
Development Platform:
Visual C++
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- using System.Data.SqlClient;
- public partial class student_mentorList : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- string teacher_id = Request.QueryString["tea_Id"];
- string userId = "63081500007";
- SqlConnection connection = DB.connect_la();
- connection.Open();
- //string commandString = "select tea_id from tea_table where tea_name = " + tea_name;
- //SqlCommand cmd1 = new SqlCommand(commandString, connection);
- //SqlDataReader sdr1 = cmd1.ExecuteReader();
- //if (sdr1.Read())
- // tea_id = sdr1.GetValue(0).ToString();
- //sdr1.Close();
- string commandString = "insert into stu_tea values('" + userId + "','" + teacher_id + "','未选择')";
- SqlCommand cmd = new SqlCommand(commandString, connection);
- try
- {
- cmd.ExecuteNonQuery();
- }
- catch
- {
- Response.Write("<script>window.location='messageBoard.aspx'</script>");
- }
- connection.Close();
- }
- //选择导师按钮
- protected void Button_Click(object sender, EventArgs e)
- {
- //string userId = Session["userId"].ToString();
- }
- }