answersLogoWhite

0

If you are referring to handling a link to a page that does not exist, then you can't unless the link was pointing to your application, in which case you can handle it in the Application_Error event in global.asax.

If you are referring to handling a link that causes a postback to your application, and then having an error occur in the Click event, you can trap your logic around a try/catch/finally block. Eg:

protected void Link_Click(object sender, EventArgs e)

{

try

{

// Do something stupid

a = 1/0;

}

catch (Exception ex)

{

ErrorMessage.Text = "Whoops, something went wrong!";

}

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you remove the driver door handle from a 2000 Dodge Neon?

Click on the link to your right for instructions.


Java error click for details?

error .click for details


What happens when ipod has an unknown error?

Click on the link below for more information.


How do you solve the iTunes error 4001?

This is what iTunes error 8012 says: "Error 8012 - There was a problem downloading the artwork for (iTunes item)." Click on the link below to go directly to the Apple iTunes support page:


What happens when you click a table move handle?

Click a table move handle to select the entire table.


What do you do after you click the answer link?

you type in your answer or click the "to answer with a web link" to answer with a website


What does the Nintendo DSi error code 052103-1 mean?

This means there is a problem with your router's firewall settings. For more information, click the link below.


How do you link on nocash gba?

Right click on The Screen and click on link. :]


What bus do you get from ashbourne to dublin?

There are buses to Ashbourne. Click on the link below.There are buses to Ashbourne. Click on the link below.There are buses to Ashbourne. Click on the link below.There are buses to Ashbourne. Click on the link below.There are buses to Ashbourne. Click on the link below.There are buses to Ashbourne. Click on the link below.There are buses to Ashbourne. Click on the link below.There are buses to Ashbourne. Click on the link below.There are buses to Ashbourne. Click on the link below.There are buses to Ashbourne. Click on the link below.There are buses to Ashbourne. Click on the link below.


Access online How do you return to the Client Home page?

click the U.S. Bank logo or Click the Home link or Click the My Personal Information link or Click the organization name?


Nintendo DS cannot connect to the internet code 051310-1?

Basically, the error code has to do with the WEP key for your wireless router. Click on the link in the related links below, or go to support.nintendo.com and enter the error code on the left.


How do you stop error reports?

# Right-Click My Computer # Select Properties # Click on the Advanced Tab # Click on the Error Reporting button # Click Disable Error Reporting # Click OK to save the changes and OK to close the System Properties dialog As an alternative you can disable the Error Reporting service via the Administrative Tools applet in the Control Panel, but the procedure described above is the recommended method of disabling Error Reporting in Windows XP.