Click here to Skip to main content
15,886,963 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: WebGrid Update From SignalR Pin
Sander Rossel24-Apr-17 8:06
professionalSander Rossel24-Apr-17 8:06 
GeneralRe: WebGrid Update From SignalR Pin
Kevin Marois24-Apr-17 8:37
professionalKevin Marois24-Apr-17 8:37 
GeneralRe: WebGrid Update From SignalR Pin
Sander Rossel24-Apr-17 9:01
professionalSander Rossel24-Apr-17 9:01 
QuestionFaceBook Like Comment Box in asp.net Pin
Jay Parmar23-Mar-17 19:21
Jay Parmar23-Mar-17 19:21 
AnswerRe: FaceBook Like Comment Box in asp.net Pin
Richard MacCutchan23-Mar-17 22:56
mveRichard MacCutchan23-Mar-17 22:56 
AnswerRe: FaceBook Like Comment Box in asp.net Pin
User 418025429-Mar-17 5:19
User 418025429-Mar-17 5:19 
AnswerRe: FaceBook Like Comment Box in asp.net Pin
ZurdoDev29-Mar-17 6:01
professionalZurdoDev29-Mar-17 6:01 
QuestionThe server responded with a status of 404 Pin
Kevin Marois23-Mar-17 5:21
professionalKevin Marois23-Mar-17 5:21 
I've got a javaScript function that handles a SignalR callback:
JavaScript
proxy.on('notifyAllClientsOfChanges', function () {

    var searchUrl = "Home/GetData";

    $.ajax({
        url: searchUrl,
        type: "GET",
        success: function (data) {
            $("#divData").html(data);
        }
    });

});

When it's called I get the 404. My controller code is

public class HomeController : Controller
{
private IDataAccess _dal;
public HomeController()
{
    _dal = new DataAccess();
}

public ActionResult Index()
{
    var data = GetData();
    return View(data);
}

public IEnumerable<AssayDashboardInfoEntity> GetData()
{
    IEnumerable<AssayDashboardInfoEntity> data = _dal.GetDashboardInfos(new DashboardInfoQueryArgs());

    return data;
}

}

On startup the code works fine and I see the data, yet when the JS function is called it fails.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: The server responded with a status of 404 Pin
F-ES Sitecore23-Mar-17 23:32
professionalF-ES Sitecore23-Mar-17 23:32 
QuestionFront Page ideas? Pin
Member 1307776622-Mar-17 10:11
Member 1307776622-Mar-17 10:11 
QuestionRe: Front Page ideas? Pin
Richard MacCutchan22-Mar-17 10:45
mveRichard MacCutchan22-Mar-17 10:45 
AnswerRe: Front Page ideas? Pin
Nathan Minier23-Mar-17 1:18
professionalNathan Minier23-Mar-17 1:18 
Question[MODIFIED] - ASP.Net MVC - "A data source must be bound before this operation can be performed" Pin
Kevin Marois22-Mar-17 5:47
professionalKevin Marois22-Mar-17 5:47 
AnswerRe: [MODIFIED] - ASP.Net MVC - "A data source must be bound before this operation can be performed" Pin
Richard Deeming22-Mar-17 6:24
mveRichard Deeming22-Mar-17 6:24 
GeneralRe: [MODIFIED] - ASP.Net MVC - "A data source must be bound before this operation can be performed" Pin
Kevin Marois22-Mar-17 6:55
professionalKevin Marois22-Mar-17 6:55 
QuestionMessage Closed Pin
20-Mar-17 1:59
professionalQuuick20-Mar-17 1:59 
QuestionRe: What are 5 essential skills every Web Developer should have? Pin
Nathan Minier21-Mar-17 1:33
professionalNathan Minier21-Mar-17 1:33 
AnswerRe: What are 5 essential skills every Web Developer should have? Pin
ZurdoDev21-Mar-17 1:46
professionalZurdoDev21-Mar-17 1:46 
AnswerRe: What are 5 essential skills every Web Developer should have? Pin
Amarnath S21-Mar-17 1:50
professionalAmarnath S21-Mar-17 1:50 
QuestionHtml Contact form with PHP Pin
lapeci15-Mar-17 3:11
lapeci15-Mar-17 3:11 
AnswerRe: Html Contact form with PHP Pin
Jochen Arndt15-Mar-17 4:39
professionalJochen Arndt15-Mar-17 4:39 
GeneralRe: Html Contact form with PHP Pin
lapeci15-Mar-17 6:21
lapeci15-Mar-17 6:21 
GeneralRe: Html Contact form with PHP Pin
Jochen Arndt15-Mar-17 6:33
professionalJochen Arndt15-Mar-17 6:33 
AnswerRe: Html Contact form with PHP Pin
biplob-hider18-Mar-17 2:26
professionalbiplob-hider18-Mar-17 2:26 
QuestionASP.Net Core Web Config Properites Pin
Member 1061576012-Mar-17 9:54
Member 1061576012-Mar-17 9:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.