Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. AJAX problem

AJAX problem

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdockercollaborationhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    marky777
    wrote on last edited by
    #1

    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:

    M 1 Reply Last reply
    0
    • M marky777

      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:

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      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. :)

      M 1 Reply Last reply
      0
      • M Michael Sync

        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. :)

        M Offline
        M Offline
        marky777
        wrote on last edited by
        #3

        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

        M 1 Reply Last reply
        0
        • M marky777

          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

          M Offline
          M Offline
          marky777
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups