Tip Bank

DevX - Software Development Resource

Retain Values in a Page in ASP

Question: Is there any way to retain values in a page (text box, check box, radio, and so on) after going to some other page and coming back? I don’t

DevX - Software Development Resource

Capturing KeyEvents

Question: How can I capture KeyEvents in a Frame that doesn’thave any TextFields or TextAreas? Answer: To enable a particular AWTEvent in a Component it suffices to add alistener for

DevX - Software Development Resource

Window Maximization

Question: How do you set the maximized state of a window within code? Answer: The Java AWT does not provide an interface for maximizing a window.The Swing JInternalFrame supports a

DevX - Software Development Resource

Get Milliseconds From Time in ASP?

Question: Can I get milliseconds from time in ASP? For example, 12:30:00.234 HH:MM:SS.fff. Answer: No, not without using a custom COM component that will return the milliseconds. But then, by

DevX - Software Development Resource

ASP String Functions

Question: I have a string that changes in length and has information separated by commas. For instance, it might contain something like: agfd, addc, aprev, ads, adft I need a

DevX - Software Development Resource

MySQL to MS SQL Syntax

Question: I have the following dump for MySQL and am having a problem getting it corrected for MS SQL. Can you help? Here is the dump file: # MySQL dump

DevX - Software Development Resource

A Simple Sort Not Working

Question: I have the following: sql=”select * from products” How do I sort or order by two columns retrieved in the “*”? Answer: You need to specify them directly in

DevX - Software Development Resource

Passing Dates to Databases from ASP

Question: How can I pass a date to a database using ASP? Answer: The answer depends on what database you are using. Say you are using a variable called ‘strDate’