Hi All,
I want to communicate with XR400 device for that i am
commands like login, queryTags,queryEvents etc.But how can i
handle the events please tell me.Here is the code snippets
which i am using


string requestUrl = "http:";
requestUrl += "//" + txtDeviceIp.Text;
requestUrl += "/" + txtPortNum.Text;
requestUrl += "/cgi-bin/" +
cmbProxyName.SelectedItem.ToString();
requestUrl += "?oper=" + txtCommand.Text;
requestUrl += "&" + txtParameter.Text + "=" +
txtValue.Text;
//requestUrl += "&" + txtParameter2.Text + "=" +
txtValue2.Text;
try
{

WebRequest _objRequest =
WebRequest.Create(requestUrl);

HttpWebResponse _objResponse =
(HttpWebResponse)_objRequest.GetResponse();
Stream _objStream =
_objResponse.GetResponseStream();

StreamReader _objStreamReader = new
StreamReader(_objStream);

string response =
_objStreamReader.ReadToEnd();

lblResponse.Text = response;
}
catch (WebException we)
{
MessageBox.Show(we.Message);
}
}