Good Morning,
i need to create a logout button in ASPxNavabar, but i dont find a way to call a serverside methods before ASPxNavabar redirect the user to Login page.
C#DevExpress.Web.NavBarGroup xGroup = new DevExpress.Web.NavBarGroup("Main");
DevExpress.Web.MenuItem xItem1 = new DevExpress.Web.MenuItem("Swot", "item.Swot", "~/Images/Swot.png", "~/Swot.aspx");
xItem1.ItemStyle.Paddings.PaddingTop = 9;
xItem1.ItemStyle.Paddings.PaddingRight = 22;
xItem1.ItemStyle.Paddings.PaddingBottom = 8;
xItem1.ItemStyle.Paddings.PaddingLeft = 19;
mnuMain.Items.Add(xItem1);
DevExpress.Web.MenuItem xItem2 = new DevExpress.Web.MenuItem("Pictures", "item.Pictures", "~/Images/picture.png", "~/Pictures.aspx");
xItem2.ItemStyle.Paddings.PaddingTop = 9;
xItem2.ItemStyle.Paddings.PaddingRight = 22;
xItem2.ItemStyle.Paddings.PaddingBottom = 8;
xItem2.ItemStyle.Paddings.PaddingLeft = 19;
mnuMain.Items.Add(xItem2);
DevExpress.Web.MenuItem xItem3 = new DevExpress.Web.MenuItem("Promoter", "item.Promoter", "~/Images/Events.png", "~/Promoter.aspx");
xItem3.ItemStyle.Paddings.PaddingTop = 9;
xItem3.ItemStyle.Paddings.PaddingRight = 22;
xItem3.ItemStyle.Paddings.PaddingBottom = 8;
xItem3.ItemStyle.Paddings.PaddingLeft = 19;
mnuMain.Items.Add(xItem3);
DevExpress.Web.MenuItem xItem4 = new DevExpress.Web.MenuItem("Esci", "item.Exit", "", "");
xItem4.ItemStyle.Paddings.PaddingTop = 16;
xItem4.ItemStyle.Paddings.PaddingRight = 14;
xItem4.ItemStyle.Paddings.PaddingBottom = 15;
xItem4.ItemStyle.Paddings.PaddingLeft = 14;
xItem4.ItemStyle.BackColor = UtilityBase.GestioneDisegno.HexToColor("#575656");
xItem4.ItemStyle.ForeColor = UtilityBase.GestioneDisegno.HexToColor("#FFF");
xItem4.ToolTip = "Exit";
mnuMain.Items.Add(xItem4);
Can you explain me a way to accomplish thi task?