Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.1 KiB

  1. <%@ LANGUAGE="VBSCRIPT" %>
  2. <HTML>
  3. <HEAD>
  4. <META NAME="GENERATOR" Content="Microsoft Visual InterDev 1.0">
  5. <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
  6. <TITLE>MSMQ Asp Sample Send Message Page</TITLE>
  7. </HEAD>
  8. <BODY>
  9. <%
  10. on error resume next
  11. set q=Session ( "RecvQueue" )
  12. if err.number <> 0 then %>
  13. <br><H3>Error receiving message:
  14. <% response.write "<br><br><font color=""#FF0000"">Error</font> 0x" & Hex(Err.Number) & " - " & Err.Description & "<br>"
  15. else
  16. on error resume next
  17. set msg=q.Receive (0, true, true, 100 )
  18. if err.number <> 0 then %>
  19. <br><H3>Error receiving message:
  20. <% response.write "<br><br><font color=""#FF0000"">Error</font> 0x" & Hex(Err.Number) & " - " & Err.Description & "<br>"
  21. else %>
  22. <% if Not msg is Nothing then %>
  23. <H3>Recieved Message ( body ): <HR>
  24. <% Response.Write msg.body %>
  25. <HR>from Queue <%= Session ("mname") & "\" & Session ("qname")%></H1>
  26. <% else %>
  27. <H3>Recieving Message: <HR>
  28. *** No messages in queue ***<BR><BR>
  29. <% end if %>
  30. <% end if
  31. end if
  32. %>
  33. <A HREF="Default.asp">[Back]</A>
  34. </BODY>
  35. </HTML>