Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6133223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:12:02+00:00 2026-05-23T17:12:02+00:00

I have an intranet application which is composed of a listbox which, when the

  • 0

I have an intranet application which is composed of a listbox which, when the user double-clicks an item, sets an iFrame’s source to the associated aspx page using javascript (the name of the page is the value of the listbox). Like this:

function GetLetterForm()
   {
    $find('ModalPopupExtender1').show();
    $("#ltrVariables").attr('src', $("#lstNames").val() + ".aspx"); //these two lines are interchangeable
    //document.ltrVariables.location = document.getElementById("<%= lstNames.clientID %>").value + ".aspx";
    $find('ModalPopupExtender1').hide();
   }

It works, but I still have one issue. Occasionally, there is a value in the listbox that has no associated webpage. For example, selection “Bob” has a value of 438, but I don’t have a 438.aspx webpage.

So I get a “Server Error – resource could not be found” in my iFrame. Not pretty.

What I’d like to do is to (somehow) hook the error, and display a general “Sorry, the dog ate my homework” aspx page when this happens.

But I have no idea how to accomplish this.

Any ideas would be greatly appreciated.

Thanks,

Jason

EDIT: I really don’t want to use IIS handling of this, as I have a separate error webpage for my master pages. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:12:02+00:00Added an answer on May 23, 2026 at 5:12 pm

    Perhaps the following link might work.
    It is about custom 404 pages.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an intranet asp.net web application which uses the OOTB ASP.net membership and
I have a custom navigation menu for my SharePoint intranet web application which is
I have a Rails 3.2.2 application which is a simple company intranet, however although
I have intranet highly user interactive ASP.net applications, which now I am going to
I am building a local intranet web application which uses the current user's AD
I have an intranet application, which for many years has made use of the
I have a new MVC application which integrates into a larger pre-existing intranet site.
I am developing an intranet web application which is a Quiz Engine. I have
I have an intranet web application which uses iframes. The outer web-page has a
I have a local intranet application which runs off a basic WAMP server in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.