Search This Blog

Saturday, August 9, 2008

Hosting a Windows Form Control in a web page

Although it is not the most common use of it, it is possible to host a Windows Form Control in a Web Page and run it from within Internet Explorer. This allows to build powerful client side functionality with all the advantages of using the .Net framework and executing the control in the client side. Of course there are some restrictions that cannot be left aside. At least the .Net framework must be installed on the client for the control to run. In addition, it is possible that some permission must be granted to the control, too, depending on the actions the control will take on the client machine.

for the sample code and the rest of this article , follow the next link
Hosting a Windows Form Control in a web page

Accessing server side from client side via XMLHTTP

I find out a very good article , with sample included .
That shows how to access server side from client side, via XMLHTTP object.
This sample with asp page.
Enjoy

XMLHTTP ActiveX objects offer alternative to accessing ASP session variables

Monday, August 4, 2008

Find open ports on windows

open DOS command
  • Find all open ports -> netstat
  • All listening ports -> netstat -an | find /i "listening"
  • see what ports your computer actually communicates with -> netstat -an |find /i "established"
  • find specified open port -> netstat -an | find /i "8989"
  • find open ports and their process ID -> netstat -ao | find /i "listening"