G
Guest
Hi everyone,
I have a piece of code in sales.aspx.vb like this:
Protected WithEvents Message As System.Web.UI.WebControls.Label
Try
...
ChartImage.ImageUrl = "ChartGenerator.aspx?" + DataStr + "&ChartType=" +
drpChartType.SelectedItem.Value.ToLower() + "&Print=" +
printVersion.ToString()
...
Catch e As Exception
Message.Text=e.Message
End Try
It handles exception fine before and after the statement:ChartImage.ImageUrl
....
but it seems not being able to catch the exception in ChartGenerator.aspx.vb
Now I am trying to do is handling the exception in ChartGenerator.aspx.vb.
but don't know what to do. with the following code in ChartGenerator.aspx.vb:
try
catch ex as exception
message.text=ex.message
Response.Redirect("ChartGenerator.aspx")
end try
I tried to let the chartGenerator.aspx display the exception using, but it
seems not working. Instead, it displays timeout message from sale.aspx.
Can you shed a light on me?
I have a piece of code in sales.aspx.vb like this:
Protected WithEvents Message As System.Web.UI.WebControls.Label
Try
...
ChartImage.ImageUrl = "ChartGenerator.aspx?" + DataStr + "&ChartType=" +
drpChartType.SelectedItem.Value.ToLower() + "&Print=" +
printVersion.ToString()
...
Catch e As Exception
Message.Text=e.Message
End Try
It handles exception fine before and after the statement:ChartImage.ImageUrl
....
but it seems not being able to catch the exception in ChartGenerator.aspx.vb
Now I am trying to do is handling the exception in ChartGenerator.aspx.vb.
but don't know what to do. with the following code in ChartGenerator.aspx.vb:
try
catch ex as exception
message.text=ex.message
Response.Redirect("ChartGenerator.aspx")
end try
I tried to let the chartGenerator.aspx display the exception using, but it
seems not working. Instead, it displays timeout message from sale.aspx.
Can you shed a light on me?