/WEB/c/a/newsletter-signout.aspx.cs
C# | 59 lines | 28 code | 12 blank | 19 comment | 0 complexity | fdf972150718886aef7bca4f59903cb3 MD5 | raw file
- using System;
- using System.Collections;
- using System.Configuration;
- using System.Data;
- using System.Linq;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.HtmlControls;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Xml.Linq;
- using SM.EM.UI;
- using System.Text.RegularExpressions;
-
- public partial class Newsletter_signout : BasePage
- {
-
- protected override void OnInit(EventArgs e)
- {
- CheckPermissions = false;
- base.OnInit(e);
-
- }
- protected void Page_Load(object sender, EventArgs e)
- {
- //Make sure that a valid querystring value was passed through
- string id = "";
-
- //if (Request.QueryString["ID"] != null){
- // id = Server.UrlDecode (Request.QueryString["ID"]);
- // id = SM.EM.Security.Encryption.DeHex(id);
- // if (SM.EM.Helpers.IsGUID(id)){
- // SignOut(new Guid(id));
- // return;
- // }
- //}
-
- //// error parsing QS id
- //litMessage.Text = "Napaka pri odjavi od prejemanja novic.";
-
- }
-
-
-
- protected void SignOut(Guid id){
-
- ////ID exists and is kosher, see if this user is already approved Get the ID sent in the querystring
- // Guid userId = id;
-
- //EM_USER usr = EM_USER.UpdateNewsletterEnabled(userId, false, true);
- // if (usr == null)
-
- // litMessage.Text = "Uporabnik ne obstaja.";
- //else{
- // litMessage.Text = "Uspešno ste odjavljeni od prejemanja novic.";
- //}
- }
- }