Can we throw exception from catch Block?
Answer Posted / devender kumar
Yes. we can throw the exception from the catch block.
If anyone have confusion then try this code:
protected void Button1_Click(object sender, EventArgs e)
{
try
{
Test();
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
private void Test()
{
try
{
throw new Exception("Dev");
}
catch (Exception ex)
{
throw ex;
}
}
| Is This Answer Correct ? | 40 Yes | 2 No |
Post New Answer View All Answers
Where viewstate value is stored in asp.net?
How does u get record no from 5 to 15 from a dataset of 100 records?
What is difference Between Authentication and authorization?
What are the data controls available in asp.net?
What is the difference between a candidate key and primary key?
What is the use of placeholder control?
Do you know about caching with the datasource controls?
Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.
Explain advantages of caching?
How do you declare static variable? What is its lifetime?
What are the 3 types of web?
What is a runtime version?
Explain cashing in asp.net.
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?
How can we register exception filter from the action?