Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8976025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:01:31+00:00 2026-06-15T19:01:31+00:00

Nothing happaned when i try do this in release mode but in debug mode

  • 0

Nothing happaned when i try do this in release mode but in debug mode all work fine – why???

When i adding button and outputing data by clicking this buton.My inner links in my list rows work fine also ( http://clip2net.com/s/2AG04 ).And only on $(document).ready(function () { event this doesn’t want to work…

On client i have:

$(document).ready(function () {
    $.ajax({
        url: '@Url.Action("Index", "Product")',
        cache: false,
        type: 'GET',
        dataType: 'json',
        proccessData: false,
        contentType: 'application/json; charset=utf-8'
    });

On server i have this:

public ActionResult Index()
    {
        if (Request.IsAjaxRequest())
        {
            //Отправляем на клиент данные 
            _senderHub.SendMessage();
            return null;
        }
        return View();
    }

Also on server:(SignalR)

readonly ManagerDB _managerDB = new ManagerDB();
    public void SendMessage()
    {
        IEnumerable<ProductModels> list = _managerDB.GetListOfProduct1();
        var listToClient = new List<ProductModels>();
        foreach (var prod in list)
        {
            listToClient.Add(new ProductModels
                                 {
                                     Id = prod.Id,
                                     Name = prod.Name,
                                     LockType = prod.LockType,
                                     LockTime = prod.LockTime,
                                     LockUser = prod.LockUser,
                                     TimeStampF = prod.TimeStampF
                                 });
        }
        var anonimProduct = listToClient;
        IHubContext context = GlobalHost.ConnectionManager.GetHubContext<SenderHub>();
        context.Clients.AddListRows(anonimProduct);
    }

On client(SignalR) trying catch this data:

$(function () {
    var senderHub = $.connection.senderHub;
    senderHub.AddListRows = function (data) {
        var dataFromServer = data;
        var listOfData = "";
        for (var i = 0; i < dataFromServer.length; i++) {
            $("#ListOfProductsTableBody").html(null);
            var userId = '';
            if (dataFromServer[i].LockUser != null) {
                userId = dataFromServer[i].LockUser;
            }
            listOfData += ("<tr><td>" + dataFromServer[i].Id + "</td><td>" + dataFromServer[i].Name + "</td><td>" + userId + "</td><td>" + dataFromServer[i].LockType + "</td>" + "<td id=\"ModifyBlock\"><a id=\"Detail\" href=\"#\" alt=" + dataFromServer[i].Id + " >Детально</a>|<a id=\"Delete\" href=\"#\" alt=" + dataFromServer[i].Id + " >Удалить</a>|<a id=\"Edit\" href=\"#\" class=\"" + dataFromServer[i].LockTime + "\" alt=" + dataFromServer[i].Id + " >Редактировать</a></td></td></tr>");
        }
        $("#ListOfProductsTableBody").append(listOfData);
    };
    $.connection.hub.start();
});

emphasized text

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T19:01:33+00:00Added an answer on June 15, 2026 at 7:01 pm

    See David Fowler’s response to my question. Looks like you have the same issue.

    Server to client messages not going through with SignalR in ASP.NET MVC 4

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can i do this ? I tryed with some thread but nothing happened.
Note: this question has nothing to do with Knockout.js, but it's about the selectedOptions
I'm getting a nothing to repeat error when I try to compile this: search
I've been looking for a solution all day, but I'm still seeing this error.
Has this happened to anyone? Nothing has changed on my system, yet TFS no
I see nothing documented on this, so does anyone know if it is possible
XPath returns nothing if a child element has no text value. In this case,
All my searches returned nothing and I find it odd that there aren't any
Google returns me just nothing useful on these keywords. But I know there is
I've seen posts talk about what might cause differences between Debug and Release builds,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.