2688b5f854
comunque fatto progressi e trovato pagina x cross site scripting
31 lines
854 B
C#
31 lines
854 B
C#
using Microsoft.AspNet.SignalR;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace GMW_RT
|
|
{
|
|
public partial class TestSend : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
protected void btnSendAll_Click(object sender, EventArgs e)
|
|
{
|
|
#if false
|
|
// mando segnale a tutti i clients...
|
|
var hubContext = GlobalHost.ConnectionManager.GetHubContext<ChatHub>();
|
|
|
|
hubContext.Clients.All.broadcastMessage("Admin", txtMessage.Text.Trim());
|
|
#endif
|
|
Broad.cast.sendMess("GMW-RT", txtMessage.Text.Trim());
|
|
txtMessage.Text = "";
|
|
txtMessage.Focus();
|
|
lblMess.Text = "Messaggio inviato!";
|
|
}
|
|
}
|
|
} |