Code Behind Page Page /UserLogin/ProfileMaint.aspx.cs (C#)
Used by Page /UserLogin/ProfileMaint.aspx (C#)
1: using System;  
2: using Microsoft.ApplicationBlocks.Data;  
3: using QuizNetOnline.Logic;  
4:   
5: namespace QuiznetOnline.Web.UI.UserLogin  
6: {  
7:     public partial class ProfileMaint : QuiznetOnline.Web.UI.BusinessClasses.BasePage  
8:     {  
9:         protected override void Page_Load(object sender, EventArgs e)  
10:         {  
11:             base.Page_Load(sender, e);  
12:             ucAddressInput.RemoveValidationGroups();  
13:   
14:         }  
15:         protected void Click_cmdSave(object sender, EventArgs e)  
16:         {  
17:             ISqlWrapper isqlwrapper = new SqlWrapper();  
18:             Profile profile = new Profile(((UserWeb)Session["userWeb"]).UserName,new Profile());  
19:   
20:             profile.NickName = txtNickName.Text;  
21:             profile.City = ucAddressInput.City;  
22:             profile.State = ucAddressInput.State;  
23:             profile.Country = ucAddressInput.CountryCode;  
24:             profile.GetNewsletter = chkGetNewsletter.Checked;  
25:             profile.Save(isqlwrapper);  
26:   
27:             Response.Redirect("~/Default.aspx");  
28:         }  
29:     }  
30: }  

.NET Documentation Tool is © 2002 - 2009 Winnersh Triangle Web Solutions Limited.