AJAX problem
-
Hi all. I have a C# ASP.NET project. I have a user control which utilises ajax for its functionality. The usercontrol has 3 links that should display something above it when clicked. This part does not work on my PC. The EXACT same project that runs on my team mate's PC works fine. The usercontrols link events fire and display properly on his side. Is there some sort of setting/option I am missing somewhere? I have the !DOCTYPE declaration on my container form. Please assist. Thanks M :confused:
-
Hi all. I have a C# ASP.NET project. I have a user control which utilises ajax for its functionality. The usercontrol has 3 links that should display something above it when clicked. This part does not work on my PC. The EXACT same project that runs on my team mate's PC works fine. The usercontrols link events fire and display properly on his side. Is there some sort of setting/option I am missing somewhere? I have the !DOCTYPE declaration on my container form. Please assist. Thanks M :confused:
The browser and browser setting from your machine and your team mate's PC are the same?? Show us the code that doesn't work in your machine and what error you are getting?
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)
-
The browser and browser setting from your machine and your team mate's PC are the same?? Show us the code that doesn't work in your machine and what error you are getting?
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)
Yes the setting are the same. There is no error, the link that should display things, is not working at all. I have 3 hyperlinks alongside each other, the link that is clicked should change colour so that it's different to the other 2 and display text within the user control. I doubt there is anything wrong with the code, as it works on our test server and my team mate's PC, except on mine. I ran a sample ajax project that i downloaded, and that works on my PC. It does not work in firefox as well. What else am i missing? This is the usercontrol's .cs file:
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; public partial class UserControl_tabcontrol : System.Web.UI.UserControl { #region " Variables " protected string color1 = string.Empty; protected string color2 = string.Empty; protected string color3 = string.Empty; #endregion protected void Page_Load(object sender, EventArgs e) { } #region " Section used to display selected content " protected void lbContent_Click(object sender, EventArgs e) { lblMessage.Text = ConfigurationManager.AppSettings["TabControlMessage"]; litDisplayCategory1.Text = string.Empty; LinkButton lb = sender as LinkButton; switch (lb.CommandArgument as string) { case "1": litDisplayCategory1.Text = GDDataAccess.DisplayTabArticle(ConfigurationManager.AppSettings["Content1"]).ToString(); color1 = ConfigurationManager.AppSettings["ColorTabControlSelected_#cc99ff"]; color2 = ConfigurationManager.AppSettings["ColorTabControlNotSelected_#9400a3"]; color3 = ConfigurationManager.AppSettings["ColorTabControlNotSelected_#9400a3"]; break; case "2": litDisplayCategory1.Text = GDDataAccess.DisplayTabArticle(ConfigurationManager.AppSettings["Content2"]).ToString(); color1 = ConfigurationManager.AppSettings["ColorTabControlNotSelected_#9400a3"]; color2 = ConfigurationManager.AppSettings["ColorTabControlSelected_#cc99ff"]; color3 = ConfigurationManager.AppSettings["ColorTabControlNotSelected_#9400a3"]; break; case "3": litDisplayCategory1.Text
-
Yes the setting are the same. There is no error, the link that should display things, is not working at all. I have 3 hyperlinks alongside each other, the link that is clicked should change colour so that it's different to the other 2 and display text within the user control. I doubt there is anything wrong with the code, as it works on our test server and my team mate's PC, except on mine. I ran a sample ajax project that i downloaded, and that works on my PC. It does not work in firefox as well. What else am i missing? This is the usercontrol's .cs file:
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; public partial class UserControl_tabcontrol : System.Web.UI.UserControl { #region " Variables " protected string color1 = string.Empty; protected string color2 = string.Empty; protected string color3 = string.Empty; #endregion protected void Page_Load(object sender, EventArgs e) { } #region " Section used to display selected content " protected void lbContent_Click(object sender, EventArgs e) { lblMessage.Text = ConfigurationManager.AppSettings["TabControlMessage"]; litDisplayCategory1.Text = string.Empty; LinkButton lb = sender as LinkButton; switch (lb.CommandArgument as string) { case "1": litDisplayCategory1.Text = GDDataAccess.DisplayTabArticle(ConfigurationManager.AppSettings["Content1"]).ToString(); color1 = ConfigurationManager.AppSettings["ColorTabControlSelected_#cc99ff"]; color2 = ConfigurationManager.AppSettings["ColorTabControlNotSelected_#9400a3"]; color3 = ConfigurationManager.AppSettings["ColorTabControlNotSelected_#9400a3"]; break; case "2": litDisplayCategory1.Text = GDDataAccess.DisplayTabArticle(ConfigurationManager.AppSettings["Content2"]).ToString(); color1 = ConfigurationManager.AppSettings["ColorTabControlNotSelected_#9400a3"]; color2 = ConfigurationManager.AppSettings["ColorTabControlSelected_#cc99ff"]; color3 = ConfigurationManager.AppSettings["ColorTabControlNotSelected_#9400a3"]; break; case "3": litDisplayCategory1.Text
Sorry the usercontrol's source was not complete: ;P <%@ Control Language="C#" AutoEventWireup="true" CodeFile = "~/UserControl/tabcontrol.ascx.cs" Inherits = "UserControl_tabcontrol" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> 1