PageRenderTime 59ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/WEB/c/a/newsletter-signout.aspx.cs

https://bitbucket.org/zzare/eko
C# | 59 lines | 28 code | 12 blank | 19 comment | 0 complexity | fdf972150718886aef7bca4f59903cb3 MD5 | raw file
  1. using System;
  2. using System.Collections;
  3. using System.Configuration;
  4. using System.Data;
  5. using System.Linq;
  6. using System.Web;
  7. using System.Web.Security;
  8. using System.Web.UI;
  9. using System.Web.UI.HtmlControls;
  10. using System.Web.UI.WebControls;
  11. using System.Web.UI.WebControls.WebParts;
  12. using System.Xml.Linq;
  13. using SM.EM.UI;
  14. using System.Text.RegularExpressions;
  15. public partial class Newsletter_signout : BasePage
  16. {
  17. protected override void OnInit(EventArgs e)
  18. {
  19. CheckPermissions = false;
  20. base.OnInit(e);
  21. }
  22. protected void Page_Load(object sender, EventArgs e)
  23. {
  24. //Make sure that a valid querystring value was passed through
  25. string id = "";
  26. //if (Request.QueryString["ID"] != null){
  27. // id = Server.UrlDecode (Request.QueryString["ID"]);
  28. // id = SM.EM.Security.Encryption.DeHex(id);
  29. // if (SM.EM.Helpers.IsGUID(id)){
  30. // SignOut(new Guid(id));
  31. // return;
  32. // }
  33. //}
  34. //// error parsing QS id
  35. //litMessage.Text = "Napaka pri odjavi od prejemanja novic.";
  36. }
  37. protected void SignOut(Guid id){
  38. ////ID exists and is kosher, see if this user is already approved Get the ID sent in the querystring
  39. // Guid userId = id;
  40. //EM_USER usr = EM_USER.UpdateNewsletterEnabled(userId, false, true);
  41. // if (usr == null)
  42. // litMessage.Text = "Uporabnik ne obstaja.";
  43. //else{
  44. // litMessage.Text = "Uspešno ste odjavljeni od prejemanja novic.";
  45. //}
  46. }
  47. }