I have created an application that has a command button. The button is clicked and the click even contains code that looks like the following:
private void cmdCall_Click(object sender, System.EventArgs e)
{
this.lblState.Text = "Attempting Connect";
try
{
int callTest;
callTest = cell.callSite(this.txtPhone.Text);
if(callTest == 1)
{
this.lblStat.Text = "Connected";
}
else
{
this.lblStat.Text = "No Answer";
}
}
catch(Exception ex)
{
this.lblStat.Text = "Error";
this.lblError.Text = ex.ToString();
}
}
The first lblStat.Text = "Attemp Connect" does not trigger. The rest of the function works properly. But for some reason the Attempt Connect does not appear in the label that have made. This happends in other click events too. It is also a problem with one of my page load events. I use VS.Net 2003. Is there something that I need to do in order for this to work properly? I could use a timer. But I don't think I should have to do something that complex for this problem.
Thanks for your help -
Andrew