-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfirmlayoutchange.aspx.cs
58 lines (50 loc) · 1.88 KB
/
confirmlayoutchange.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using XDRecipe.UI;
using XDRecipe.BL;
using XDRecipe.Common;
using XDRecipe.Security;
using XDRecipe.Common.Utilities;
using XDRecipe.BL.Providers.CookBooks;
using XDRecipe.BL.Providers.FriendList;
using XDRecipe.BL.Providers.User;
public partial class confirmlayoutchange : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Authentication.IsUserAuthenticated)
{
//Coming from category.aspx
if (!string.IsNullOrEmpty(Request.QueryString["ReturnURL"]) && !string.IsNullOrEmpty(Request.QueryString["mode"]))
{
string strURLRedirect = Request.QueryString["ReturnURL"];
string mode = Request.QueryString["mode"];
switch (mode)
{
case "L":
Blogic.UpdateUserPreferredLayout(UserIdentity.UserID, int.Parse(Request.QueryString["playout"]));
break;
case "P":
Blogic.UpdateUserPreferredPageSize(UserIdentity.UserID, int.Parse(Request.QueryString["psize"]));
break;
}
Response.Redirect(strURLRedirect);
}
//Coming from MyAccount.aspx
if (!string.IsNullOrEmpty(Request.QueryString["ReturnURL"]) && !string.IsNullOrEmpty(Request.QueryString["flag"]))
{
string strURLRedirectToMyAccount = Request.QueryString["ReturnURL"] + "?save=success";
Response.Redirect(strURLRedirectToMyAccount);
}
}
Response.Redirect("default.aspx");
}
}