Click here to Skip to main content
15,920,053 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: regex replace with double quote Pin
Richard Deeming9-Oct-14 1:47
mveRichard Deeming9-Oct-14 1:47 
GeneralRe: regex replace with double quote [EDIT] fixed my regex Pin
jkirkerx9-Oct-14 8:05
professionaljkirkerx9-Oct-14 8:05 
QuestionGreybox popup not show properly after postback Pin
Member 98439577-Oct-14 19:35
Member 98439577-Oct-14 19:35 
QuestionPiro box add two iframe after asynchronous postback. Pin
Member 98439576-Oct-14 21:00
Member 98439576-Oct-14 21:00 
QuestionGray box not working after Asynchronus postback Pin
Member 98439576-Oct-14 20:54
Member 98439576-Oct-14 20:54 
QuestionButton click not trigger second time in jquery Modal popup Pin
dineshkanagaraj6-Oct-14 3:31
dineshkanagaraj6-Oct-14 3:31 
AnswerRe: Button click not trigger second time in jquery Modal popup Pin
jkirkerx6-Oct-14 11:46
professionaljkirkerx6-Oct-14 11:46 
QuestionWant to send message to only connected client SignalR Pin
Tridip Bhattacharjee5-Oct-14 21:05
professionalTridip Bhattacharjee5-Oct-14 21:05 
here i got bit code for signalr and included.
client code

C#
$(function () {
    // Proxy created on the fly
    var chat = $.connection.chat;

    // Declare a function on the chat hub so the server can invoke it
    chat.addMessage = function (message) {
        $('#messages').append('<li>' + message + '');
    };

    $("#broadcast").click(function () {
        // Call the chat method on the server
        chat.send($('#msg').val());
    });

    // Start the connection
    $.connection.hub.start();
});


server code

C#
public class Chat : Hub
{
    public void Send(string message)
    {
        // Call the addMessage method on all clients
        Clients.addMessage(message);
    }
}


just see this line Clients.addMessage(message); addMessage() will invoke addMessage() function in client side but think suppose when i am sending data or message to specific client and if that is client is not connected any more then what will happen?

is there any provision in signalr like can we determine that client is connected before delivering data to specific client.

i want to detect a specific client is connected or not before sending data to client. if client is not connected then i will store data in db for that specific user. please help me with sample code that how to detect a specific client is connected or not? thanks
tbhattacharjee

QuestionLog-in form question Pin
Member 87616674-Oct-14 8:46
Member 87616674-Oct-14 8:46 
AnswerRe: Log-in form question Pin
jkirkerx7-Oct-14 7:30
professionaljkirkerx7-Oct-14 7:30 
GeneralRe: Log-in form question Pin
Member 87616677-Oct-14 9:17
Member 87616677-Oct-14 9:17 
GeneralRe: Log-in form question Pin
jkirkerx7-Oct-14 9:50
professionaljkirkerx7-Oct-14 9:50 
GeneralRe: Log-in form question Pin
Member 87616677-Oct-14 10:38
Member 87616677-Oct-14 10:38 
GeneralRe: Log-in form question Pin
jkirkerx7-Oct-14 10:56
professionaljkirkerx7-Oct-14 10:56 
GeneralRe: Log-in form question Pin
Member 87616677-Oct-14 11:37
Member 87616677-Oct-14 11:37 
GeneralRe: Log-in form question Pin
jkirkerx7-Oct-14 11:56
professionaljkirkerx7-Oct-14 11:56 
GeneralRe: Log-in form question Pin
Member 87616677-Oct-14 12:04
Member 87616677-Oct-14 12:04 
QuestionHow can i Post Radio Button List with Dynamic names to controller Pin
Mujtaba 103885433-Oct-14 18:24
professionalMujtaba 103885433-Oct-14 18:24 
QuestionHow to find in useful/unnecessary files from website folder ??? Pin
Abhishek kumar1213-Oct-14 6:07
Abhishek kumar1213-Oct-14 6:07 
AnswerRe: How to find in useful/unnecessary files from website folder ??? Pin
ZurdoDev3-Oct-14 6:53
professionalZurdoDev3-Oct-14 6:53 
AnswerRe: How to find in useful/unnecessary files from website folder ??? Pin
jkirkerx3-Oct-14 11:21
professionaljkirkerx3-Oct-14 11:21 
Questionwhy onblur Event Dosent Work For Div Element ??????????? Pin
mhd.sbt3-Oct-14 6:03
mhd.sbt3-Oct-14 6:03 
AnswerRe: why onblur Event Dosent Work For Div Element ??????????? Pin
Richard Deeming3-Oct-14 6:31
mveRichard Deeming3-Oct-14 6:31 
GeneralRe: why onblur Event Dosent Work For Div Element ??????????? Pin
mhd.sbt5-Oct-14 10:59
mhd.sbt5-Oct-14 10:59 
GeneralRe: why onblur Event Dosent Work For Div Element ??????????? Pin
Praneet Nadkar5-Oct-14 19:52
Praneet Nadkar5-Oct-14 19:52 

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.