您目前尚未登陆,请选择【登陆】或【注册
首页->全站代码->WebQuest发布系统源码及文档>>Admin/admin_models_add.aspx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:WebQuest发布系统源码及文档
当前文件:文件类型 WebQuest/Admin/admin_models_add.aspx.cs打开代码结构图
普通视图
		            
1using System; 2using System.Data; 3using System.Configuration; 4using System.Collections; 5using System.Web; 6using System.Web.Security; 7using System.Web.UI; 8using System.Web.UI.WebControls; 9using System.Web.UI.WebControls.WebParts; 10using System.Web.UI.HtmlControls; 11using System.Data.OleDb; 12using WebQuest; 13 14public partial class Admin_admin_models : System.Web.UI.Page 15{ 16 public string _id = null; 17 protected void Page_Load(object sender, EventArgs e) 18 { 19 FCKeditor1.ToolbarSet = "Basic"; FCKeditor2.ToolbarSet = "Basic"; FCKeditor3.ToolbarSet = "Basic"; FCKeditor4.ToolbarSet = "Basic"; FCKeditor5.ToolbarSet = "Basic"; 20 FCKeditor6.ToolbarSet = "Basic"; 21 _id = Request.QueryString["id"].ToString(); 22 23 } 24 25 protected void btnSubmit_Click(object sender, EventArgs e) 26 { 27 Models myObj = new Models(); 28 myObj.WebquestId = int.Parse(_id); 29 30 myObj.ModelName = lbIntroduction.Text; myObj.Content = FCKeditor1.Value.ToString(); myObj.Create(); 31 myObj.ModelName = lbTask.Text; myObj.Content = FCKeditor2.Value.ToString(); myObj.Create(); 32 myObj.ModelName = lbProcess.Text; myObj.Content = FCKeditor3.Value.ToString(); myObj.Create(); 33 myObj.ModelName = lbResource.Text; myObj.Content = FCKeditor4.Value.ToString(); myObj.Create(); 34 myObj.ModelName = lbEvalution.Text; myObj.Content = FCKeditor5.Value.ToString(); myObj.Create(); 35 myObj.ModelName = lbConclusion.Text; myObj.Content = FCKeditor6.Value.ToString(); myObj.Create(); 36 Label1.Text = "发布成功"; LinkButton1.Enabled = true; LinkButton1.Visible = true; 37 38 39} 40 41 42 43 protected void LinkButton1_Click(object sender, EventArgs e) 44 { 45 Response.Redirect("../webquest_view.aspx?id=" + _id); 46 } 47 48} 49 50
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:WebQuest发布系统源码及文档
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号