|
|
|
|
|
Total Hits: 245 | Today: 0 |
Author: Robert Hess
|
Rating:
|
|

How can I detect if a user clicks the browser's Stop button while viewing my Web page? Starting with Microsoft® Internet Explorer 5.0, your client-side code can trap the onstop event. This will let you know when the user clicks the Stop button, hits the Escape key, or when the page is being unloaded. Trapping the onstop event is handy when your page is performing some process that you want to stop when the user clicks the Stop button. Some processes that users might want to stop include ba...
|
|
|
|
Total Hits: 1226 | Today: 0 |
|
Rating:
|
|

Quick answers to the questions our Support Professionals hear most often...
|
|
|
|
Total Hits: 1076 | Today: 0 |
|
Rating:
|
|

Active Server Pages is a language-independent framework designed by Microsoft for efficient coding of server-side scripts.....
|
|
|
|
Total Hits: 252 | Today: 0 |
Author: George Chastain
|
Rating:
|
|

The FAQ List app that I created, I call it EzFAQ, uses a Microsoft Access database and allows any member with access to the site to view, add, edit and delete entries in the FAQ List. I had originally created a version of this app that would use a plain, tab-delimited text file in which to store the FAQs. However, when I decided to allow all team members to have access to modifying the list, it was obvious that a database was needed....
|
|
|
|
Total Hits: 181 | Today: 0 |
|
Rating:
|
|

Many of the questions answered in this section are to help answer questions asked by people when they have trouble running the Free ASP Applications available from Web Wiz Guide. However, many of the answers are generic and should help with other problems that you may come across when writing or using ASP applications....
|
|
|
|
Total Hits: 249 | Today: 0 |
Author: Robert Hess
|
Rating:
|
|

The use of file upload with an HTML form is not a very powerful method of transferring files. If you're writing a full-blown C++ application, you should take advantage of the rich networking interfaces supported by Microsoft® Windows®. If you are writing a client-side application, I recommend that you use the WinInet functions (see Windows Internet Services). Specifically, you should use the FTP functions, since that's the proper way to transfer files between machines. You'll find some sample...
|
|
|
|
Total Hits: 240 | Today: 0 |
Author: Robert Hess
|
Rating:
|
|

I noticed a service from Yahoo called Companion that adds a toolbar to my Microsoft® Internet Explorer browser. The toolbar contains some of their services, such as a search link. Hotbar.com also does this, adding a skin and toolbar. How can I build my own toolbar and add it to Internet Explorer? There are a variety of ways to interact with and extend the user interface supplied by Internet Explorer. Probably the best place to check out the options and methods that are available is Browser Ex...
|
|
|
|
Total Hits: 155 | Today: 0 |
Author: Robert Hess
|
Rating:
|
|

I need a way to use a control on a Web page as a print button, just like the print option on the Microsoft® Internet Explorer toolbar. I don't want the print dialog to pop up; I want to use the default printer, and I want to constrain the print count to one. The need to control printing from the browser is fairly common, and the amount of functionality you can provide will depend on which version of the browser is involved. Beginning with Internet Explorer 4.0, you could use the ExecWB funct...
|
|
|
|
Total Hits: 147 | Today: 0 |
Author: Robert Hess
|
Rating:
|
|

In the May issue of MSDN® Magazine, you explained how you could submit an e-mail by using forms on the client PC. I tried to use your code and two things happened. First, no values from the form (such as name) appeared in the body of the message. Second, the e-mail wasn't sent until I hit the Send button. Is it possible to have the e-mail sent automatically after the user clicks OK on the warning screen? I found that if you set body=xxx, xxx will appear in the body of the message. Is this the...
|
|
|
|
Total Hits: 134 | Today: 0 |
Author: Nancy Michell
|
Rating:
|
|

I'm trying to size a TextArea element. Is there a property you can set to control the width of a TextArea to be the size of its container, in this case a | ? Otherwise, is there a way to do this with DHTML? Setting the width of the TextArea to 100 percent will keep it the same size as the table cell it is in....
|
|
|
|
Total Hits: 129 | Today: 0 |
Author: Robert Hess
|
Rating:
|
|

I recently read an article about Windows Script Host (WSH) 2.0. Before I become really interested, I have one question: can I use WSH to rename existing files? I downloaded the latest documentation from Microsoft, but I found no mention of this. Yes, you can. Through the use of the FileSystem object (as well as the File object) you can effectively rename files. The problem is you would expect to find it in the documentation under a name like Rename. Actually, the functionality is supplied via...
|
|
|
|
Total Hits: 164 | Today: 0 |
Author: Robert Hess
|
Rating:
|
|

I have a series of pages on my Web site, with different want ads on each page. Users click on the ads they want to see. In order for me to identify users and put them in touch with the person who placed the ad, I request that users register with a user ID, password, and e-mail address, which they keep for future visits. Before registered users look at the ads, I would like them to enter their user ID and password. Then, when they click on an ad, a form is sent to me with the user ID, password, a...
|
|
|
|
Total Hits: 1131 | Today: 0 |
|
Rating:
|
|

I added server-side scripting to several of my Web pages, but when I view them in the browser, I see all of my script code displayed on the browser. What am I doing wrong?...
|
|
|
|
Total Hits: 282 | Today: 0 |
Author: Scott Mitchell
|
Rating:
|
|

This is a fairly commonly asked question on ASPMessageboard.com. Essentially, you can have images stored in a database in one of two formats: as a text field specifying a URL from where the image can be found; or as a binary field stored within the database. There are times when each approach makes sense. Since we are dealing with the Web, oftentimes it makes more sense to use the former approach, to simply store the URLs to the images as opposed to actually storing the binary contents of the...
|
|
|
|
Total Hits: 169 | Today: 0 |
Author: Robert Hess
|
Rating:
|
|

I want to be able to return fields from a Microsoft® Access database and display them by using a key in a listbox design-time control (DTC). I want these fields to be displayed in textboxes that can be altered using add, change, and delete. How do I link the listbox selections to textboxes on another page? I don't think that the issues involved here are specific to a DTC, and it's not important that the values are coming from fields in a Microsoft Access database. It sounds like you want to c...
|
|
|
|
Total Hits: 147 | Today: 0 |
Author: Robert Hess
|
Rating:
|
|

When I select an item in one listbox, I want it to filter the options in another listbox. For example, I have a listbox that contains office locations. When I select a location, a second listbox should display the servers at that particular location. How do I update the second listbox based on the choice from the first listbox? In this sample code, I use the remove and add methods of a select list to update the contents dynamically. Since add is a method of a Select object, you must add Optio...
|
|
|
|
Total Hits: 162 | Today: 0 |
Author: Robert Hess
|
Rating:
|
|

I am developing an ASP application in which the user enters some information in screen A. After processing this information, I display screen B. But the processing sometimes takes a while, so I want to display a screen between A and B that says "Please wait..." or " Processing....". In the interim, I'll do the processing while that screen is displayed, then automatically switch to screen B when ready. I want to avoid any client-side scripting, so I need to process the information on the server a...
|
|
|
|
Total Hits: 967 | Today: 0 |
|
Rating:
|
|

When you open an Active Server Page (ASP) in a Web browser, you see the ASP code rather than the HTML code generated by the Web server....
|
|
|
|
Total Hits: 72 | Today: 0 |
|
Rating:
|
|

This articles contains several FAQs which can be helpful for ASP knowlwdge seekers. Can I send email from a ASP page? What are Active Server Pages (ASP) ? Can I run Active Server pages (ASP) on Unix/Linux ? What is a FileSystemObject ?...
|
|
|
|
Total Hits: 248 | Today: 0 |
Author: Robert Hess
|
Rating:
|
|

Is there a way to detect the security settings in Microsoft® Internet Explorer on the client machine? I would like to check if I can create an object (like Excel.application) on the client's machine, and if not I'd like to show a customized message. Gaining access to the security settings of a user's machine is not possible, and is considered a security violation. However, if your primary objective is to simply understand if your page is running in low security (which should never happen if t...
|
|
|
|
|
|
|