Click here to Skip to main content
16,014,392 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Received message from MSMQ in asp.net using "ReceiveCompleted" in java script currently I am using following code. in code behind but it gives the issue to assign value in textbox.

e.g.
void MsgQ_ReceiveCompleted(object sender, ReceiveCompletedEventArgs e)
{

{

System.Messaging.Message msMessage = null;
msMessage = MsgQ.EndReceive(e.AsyncResult);
msMessage.Formatter = new XmlMessageFormatter(new String[] { "System.String,mscorlib" });
Textbox1.Text = msMessage.Body.ToString();
MsgQ.BeginReceive();
}
Posted
Comments
virusstorm 22-Jun-15 8:03am    
Can you clarify if you are using JavaScript or C#? The code example you have here looks more like C#.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900