document.forms[0].elements['dropdownid'].onchange();
Wednesday, February 25, 2009
how to trigger dropdown onchange event using javascript
document.forms[0].elements['dropdownid'].onchange();
Tuesday, February 17, 2009
Tuesday, February 3, 2009
How to check whether Internet connection is avaialable or not
using System.Net;
WebRequest objWebReq;
WebResponse objResp;
public Boolean IsConnectionAvailable()
{
System.Uri objUrl = new System.Uri("http://www.google.com/");
objWebReq = WebRequest.Create(objUrl);
try
{
objResp = objWebReq.GetResponse();
objResp.Close();
objWebReq = null;
return true;
}
catch (Exception ex)
{
objResp.Close();
objWebReq = null;
return false;
}
}
Subscribe to:
Posts (Atom)