请教急急!!!~~

romantic279 2007-09-13 08:24:27
using System;
using System.Data;
using System.Configuration;
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.OleDb;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void btntj_Click(object sender, EventArgs e)
{
string text = string.Empty;
if (rb1.Checked)
{
text = "就业政策、流程";
}
else if (rb2.Checked)
{
text = "职业生涯规划";
}

else if (rb3.Checked)
{
text = "简历制作、面试技巧";
}
else if (rb4.Checked)
{
text = "权益保障";
}
else if (rb5.Checked)
{
text = "就业心理障碍";
}
else if (rb6.Checked)
{
text = other.Text;
}
DateTime d1 = System.DateTime.Now;
string strconnection = "provider=microsoft.jet.oledb.4.0;Data Source=C:\\Documents and Settings\\User\\My Documents\\Visual Studio 2005\\work\\App_Data\\cauwork.mdb";

OleDbConnection cusconnection = new OleDbConnection(strconnection);

cusconnection.Open();
string strcmd = "insert into job([name], xuehao,collage,tel,banji,mail,zxnr,zxsj,[time]) values('" + name.Text + "','" + xuehao.Text + "','" + collage.Text + "','" + tel.Text + "','" + banji.Text + "','" + mail.Text + "','" + text + "','" + DropDownList1.SelectedItem.Text + "',#" + d1 + "#)";
OleDbCommand cmd = new OleDbCommand(strcmd, cusconnection);
cmd.ExecuteNonQuery();
cusconnection.Close();
Response.Write("<script>alert('预约成功')</script>");
name.Text = "";
collage.Text = "";
tel.Text = "";
xuehao.Text = "";
banji.Text = "";
mail.Text = "";

other.Text="";
}
protected void btncz_Click(object sender, EventArgs e)
{
name.Text = "";
collage.Text = "";
tel.Text = "";
xuehao.Text = "";
banji.Text = "";
mail.Text = "";
}
}

这是一个学生预约的网站,预约成功后,会在另一个页面显示学生姓名,学号,预约时间等个人信息
现在想实现这样的功能,DropDownList1里邦定的时间段,每个时间段只能预约两个人,超过两个人会给出一个提示,而且每周的预约时间截止到每周三晚上6:30
另外另一张显示预约成功的学生的个人信息想按周分页,怎么做到
本人刚学.net没多久,请大家多多帮忙,先谢了

下面的是页面代码

...全文
184 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
romantic279 2007-09-13
  • 打赏
  • 举报
回复
<TD width=83 background=http://202.205.91.30/quchen/jyzx/aaa/face2_04.gif
height=18><FONT color=#666688><A
href="http://www.cau.edu.cn/xyh/xyh_new/"
target=_blank>农大校友</A></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>
<TBODY>
<TR>
<TD width=24 bgColor=#d1d1dc><IMG height=18 src="" width=1></TD>
<TD class=up-menu width=754 bgColor=#d1d1dc> <A
href="http://scc.cau.edu.cn/Login/login.aspx">登录</A>  <A
href="http://scc.cau.edu.cn/Contact/contact.aspx">人员结构</A>  <A
href="http://scc.cau.edu.cn/News/index.aspx">就业新闻</A>  <A
href="http://scc.cau.edu.cn/Policy/index.aspx">就业政策</A>  <A
href="http://scc.cau.edu.cn/Guide/index.aspx">就业指导</A>  <A
href="http://scc.cau.edu.cn/Mailbox/index.aspx">就业咨询</A>   <A
href="http://scc.cau.edu.cn/Search/stucx.aspx">学生查询</A>  <A
href="http://scc.cau.edu.cn/Download/index.aspx">下载中心</A>  <A
href="http://scc.cau.edu.cn/Contact/introduction.aspx#">就业快报</A>  <A
href="http://scc.cau.edu.cn/Unit/unitmien.aspx">企业风采</A>  <A
href="http://scc.cau.edu.cn/Zp/zph.aspx">招聘会</A>  <A
href="http://scc.cau.edu.cn/Zp/zpxx.aspx">招聘信息</A>  <A
href="http://scc.cau.edu.cn/Movie/index.aspx">影视在线</A>  <A
href="http://scc.cau.edu.cn/Login/logout.aspx">退出</A>  </TD></TR></TBODY></TABLE>

<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>
<TBODY>
<TR>
<TD bgColor=#ffffff><IMG height=11 src="http://202.205.91.30/quchen/jyzx/aaa/Spacer.gif"
width=1>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
romantic279 2007-09-13
  • 打赏
  • 举报
回复
<TR>
<TD width=292 bgColor=#666688 rowSpan=2><IMG height=87
src="http://202.205.91.30/quchen/jyzx/aaa/face2_01.gif" width=278></TD>
<TD align=middle width=486 bgColor=#666688 height=66>
<OBJECT
codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0
height=57 width=468 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>
<PARAM NAME="movie" VALUE="http://202.205.91.30/quchen/jyzx/images/banner.swf"><PARAM NAME="quality" VALUE="high">
<embed src="http://202.205.91.30/quchen/jyzx/aaa/banner.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="468"
height="57"></embed></OBJECT></TD></TR>
<TR>
<TD vAlign=bottom align=right bgColor=#666688>
<TABLE class=up-menu cellSpacing=0 cellPadding=0 width=415 border=0>
<TBODY>
<TR>
<TD width=83 background=http://202.205.91.30/quchen/jyzx/aaa/face2_04.gif
height=18><FONT color=#666688><A
href="http://scc.cau.edu.cn/index.aspx">本站主页</A></FONT></TD>
<TD width=83 background=http://202.205.91.30/quchen/jyzx/aaa/face2_04.gif
height=18><FONT color=#666688><A
href="http://scc.cau.edu.cn/student/cindex.aspx">学生求职</A></FONT></TD>
<TD width=83 background=http://202.205.91.30/quchen/jyzx/aaa/face2_04.gif
height=18><FONT color=#666688><A
href="http://scc.cau.edu.cn/unit/cindex.aspx">单位招聘</A></FONT></TD>
<TD width=83 background=http://202.205.91.30/quchen/jyzx/aaa/face2_04.gif
height=18><FONT color=#666688><A
href="http://scc.cau.edu.cn/Contact/introduction.aspx">中心简介</A></FONT></TD>
romantic279 2007-09-13
  • 打赏
  • 举报
回复
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<LINK
href="http://202.205.91.30/quchen/jyzx/aaa/index.css" type=text/css rel=stylesheet>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>中国农业大学就业指导服务中心</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>
<TBODY>
<TR>
<TD width=24 bgColor=#d1d1dc><IMG height=18
src="http://202.205.91.30/quchen/jyzx/aaa/Spacer.gif" width=1></TD>
<TD class=up-menu width=754 bgColor=#d1d1dc><A
href="http://www.cau.edu.cn/" target=_blank>农大主页</A>    <A
href="http://webmail.cau.edu.cn/" target=_blank>网络邮局</A>   
<A href="http://auth.cau.edu.cn/" target=_blank>网关</A>   
<A href="http://www.cau.edu.cn/wlzxnew"
target=_blank>网络服务</A>    <A href="http://acct.cau.edu.cn/"
target=_blank>网费查询</A>    <A
href="http://www.cau.edu.cn/jwc/main.php">教务处</A>    <A
href="http://xsc.cau.edu.cn/" target=_blank>学生处</A>    <A
href="http://scc.cau.edu.cn/search/index.aspx"
target=_blank>本站搜索引擎</A>     <A
href="ftp://scc.cau.edu.cn/" target=_blank>FTP登陆</A>    <A
href="http://www.ciee.cn/vod/index.php">视频点播</A>      
<A href="http://scc.cau.edu.cn/asp/bys_index.asp"><FONT
color=#ff6600>[怀念旧版]</FONT></A>    </TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>
<TBODY>

879

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 ColdFusion
社区管理员
  • ColdFusion社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧