Click here to Skip to main content
15,897,273 members

Comments by niralirshah (Top 11 by date)

niralirshah 25-Dec-13 2:39am View    
assume s=<abcd and="" want="" to="" replace=""><abcd with="" grtabcd..=""></abcd>
niralirshah 25-Dec-13 2:02am View    
thank you..
actually i want to encode the input html in javascript for XSS and SQL Injection for ASP website. for this i am using replace method for the same.


function(s,en){
if(!this.isEmpty(s)){
en = en || true;
// do we convert to numerical or html entity?
if(en){
s = s.replace(/\'/g,"'");
s = s.replace(/\"/g,""");
s = s.replace(//g,">");
}else{
s = s.replace(/\'/g,"'");
s = s.replace(/\"/g,""");
s = s.replace(//g,">");
}
return s;

please help me ...
thanks for your help..
niralirshah 18-Nov-13 6:47am View    
Hello.. i have implemented SignalR 1.0.0-rc1 in asp.net 4.0 and C# successfully. but to enhance features , the no of notifications and details will be same for all users, but when user1 read notification at that time the count of notification is decreases in his browser, but the problem is that user2(who had not read his notification) also found count-1 with signalR. i have using Clients.All.addMessage(message, Detail); and Clients.Caller.addMessage(message, Detail); but not succeeded.. please help and give some idea.. thanks a lot in advance


Requirement for the notifications
Case 1 : Broadcast to all users who are connected to the server when new features added or updated in the project, newly added feature is accessible to all users.(broadcast working fine when no of notification count same to all users, but when user1 has count = 4 and user2 has count = 6 and at a moment updates comes then notification count = 7 at both users browser. so this is wrong...)

Case 2 : i am providing notification details according to the number of notification count.
so if user1 read say 1st updates then notification count will be count-1 for user1. But User2 can see the total number of notification count.(i am done with this)

Case 3 : there is also some modules which are not accessible to all users. so when some task assign to particular user then task updates (in form of notification count) visible to that users, not all users. (for this i am using clients.caller)

Thank you very much in advance.



niralirshah 6-Nov-13 8:31am View    
Thanks a lot for your reply... Done with SignalR successfully to notify number of comments but want to decrease count of comments which is read by user. That means i want to implement functionality same as codeproject of Message NotificationCount. Please suggest any soltion.
niralirshah 6-Nov-13 8:29am View    
Deleted
Thanks a lot for your reply... Done with SignalR successfully to notify number of comments but want to decrease count of comments which is read by user. That means i want to implement functionality same as codeproject of Message NotificationCount. Please suggest any soltion.