Hi,
I've gotten a simple radmenu to work fine on my development computer, but when it is uploaded to the production machine, the RadMenu will not respond to postback. The radmenu is embedded in a master page that will then control what web pages the user goes to based on the selection from the menu. Right now the 'Login' and 'Default' pages don't have anything but a marker to see if they load...
I'm just trying to get the basic framework working before fleshing out the menus and pages...
Since it works in VS2010 on my dev machine, I can't see why I would be having trouble on the production computer... (2008R2/ IIS7)
See below for code sample.
Thanks so much for looking at it... I'm stumped.
Master.Master
Master.Master.VB
I've gotten a simple radmenu to work fine on my development computer, but when it is uploaded to the production machine, the RadMenu will not respond to postback. The radmenu is embedded in a master page that will then control what web pages the user goes to based on the selection from the menu. Right now the 'Login' and 'Default' pages don't have anything but a marker to see if they load...
I'm just trying to get the basic framework working before fleshing out the menus and pages...
Since it works in VS2010 on my dev machine, I can't see why I would be having trouble on the production computer... (2008R2/ IIS7)
See below for code sample.
Thanks so much for looking at it... I'm stumped.
Master.Master
<%@ Master Language="VB" CodeFile="Master.master.vb" Inherits="Master" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title> Pc. </title> <link href="~/Styles/Pc/Site.css" rel="stylesheet" type="text/css"/> <asp:ContentPlaceHolder id="head" runat="server"> </asp:ContentPlaceHolder> </head> <body> <script type="text/javascript"> var flag = false;</script> <script type="text/javascript"> var AjaxIsActive = false; function RequestSent() { if (!AjaxIsActive) { AjaxIsActive = true; } else { alert('Wait for Page to Load'); return false; } } function ResponseEnd() { AjaxIsActive = false; } </script> <form id="form1" runat="server"> <center> <div id="Header"> <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"> </telerik:RadScriptManager> <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Office2010Blue" EnableRoundedCorners="true"/> <table id="header"> <tr> <td align="left" style="width:300px"> <img src="./Images/Pc/Logo.png" alt=""/> </td> <td valign="bottom" align="right"> <table> <tr> <td> <telerik:RadMenu ID="Menu1" Runat="server" EnableRoundedCorners="true"> </telerik:RadMenu> </td> </tr> </table> </td> </tr> </table> </div> <div> <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div> <asp:Label ID="Label1" runat="server" Text=""></asp:Label> </center> </form> <script type="text/javascript"> flag = true;</script> </body></html>Imports SystemImports System.Web.UI.WebControlsImports Telerik.Web.UIPartial Class Master Inherits System.Web.UI.MasterPage Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load If Not IsPostBack Then Menu1.LoadContentFile("~/App_Data/InMenu.xml") End If If HttpContext.Current.User.Identity.IsAuthenticated = True Then Try Menu1.FindItemByText("Login").Text = "Logout" Catch End Try 'MenuToggle("Gap", True, True) End If ' Label1.Text += "1" End Sub Private Sub MenuToggle(ByVal theButton As String, ByVal theStatus As Boolean, ByVal theVisibility As Boolean) Menu1.FindItemByText(theButton).Enabled = theStatus Menu1.FindItemByText(theButton).Visible = theVisibility End Sub Protected Sub Menu1_ItemClick(sender As Object, e As Telerik.Web.UI.RadMenuEventArgs) Handles Menu1.ItemClick Label1.Text += "2" Select Case e.Item.Text Case "Login" : Response.Redirect("~/Login.aspx") Case "Logout" : FormsAuthentication.SignOut() Response.Redirect("~/Default.aspx") End Select Label1.Text += "3" End SubEnd Class