您目前尚未登陆,请选择【登陆】或【注册
首页->其他源码->基于Ajax的邮件系统源码>>Portal/AddGroup.aspx.cs>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:基于Ajax的邮件系统源码


当前文件路径:AjaxMail/Portal/AddGroup.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 Web2ASPNET2.ASPNET2AjaxMail; 12using Web2ASPNET2.CommonOperation; 13using Web2ASPNET2.UserCommonOperation; 14 15public partial class Portal_AddGroup:System.Web.UI.Page 16{ 17 protected void Page_Load(object sender,EventArgs e) 18 { ///判断用户是否登录 19 UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo(Session); 20 if(info == null) 21 { ///返回到上一个页面 22 Response.Write("<script>history.back()</script>"); 23 ///跳转到登录页面 24 Response.Redirect("~/Portal/UserLogin.aspx"); 25 return; 26 } 27 } 28 protected void btnAdd_Click(object sender,EventArgs e) 29 { ///执行添加操作 30 Group group = new Group(); 31 if(group.AddGroup(tbName.Text) > 0) 32 { 33 Dialog.OpenDialogInAjax((Button)sender,"恭喜您,添加新组成功……"); 34 } 35 } 36 protected void btnAddAndReturn_Click(object sender,EventArgs e) 37 { ///执行添加操作 38 Group group = new Group(); 39 if(group.AddGroup(tbName.Text) > 0) 40 { 41 Dialog.OpenDialogInAjax((Button)sender,"恭喜您,添加新组成功……"); 42 ///返回管理页面 43 Response.Redirect("~/Portal/GroupManage.aspx"); 44 } 45 } 46 protected void btnReturn_Click(object sender,EventArgs e) 47 { ///返回管理页面 48 Response.Redirect("~/Portal/GroupManage.aspx"); 49 } 50} 51
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:基于Ajax的邮件系统源码

- Acom进出仓管理系统源码

- Asp.net计件工资管理系统源码

- 产品管理系统(三层结构示例项..

- 博易单用户博客V1.0Beta项目源码

- 浩渺留言板源码

- Repeter控件开发RssFeed(附详..

- Asp.net简单入门新闻系统51a..

- 人才网初学者工具包源码

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号