Tip Bank

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’

DevX - Software Development Resource

Submitting a Form Without a Submit Button

Question: How can I submit a form in ASP without a user clicking on a button? I tried: nameofform.submit() but I get the error: Microsoft VBScript runtime error ‘800a01a8’ Object

DevX - Software Development Resource

Generating KeyEvents

Question: How can I generate a Key Event from Java?I need to generate a KEY_TYPED Event, so the focused Component accepts it like normal key action. Answer: All you have

DevX - Software Development Resource

Editing Report Details in Print Preview

Question: Is it possible to edit report details in a print preview window? For example, if the report previewed has a line in it that I wish to remove, can

DevX - Software Development Resource

Cannot Use Server.CreateObject on Client

Question: I created an ActiveX DLL that contains a class used to hold application settings. I registered the DLL (and a subsidiary DLL) on the Web server, but when I

DevX - Software Development Resource

Global Variables

Question: One of the things left out of Java that we had in C++ wasglobal variables. Is there a way to use global variables in Java? Answer: Even though Java

DevX - Software Development Resource

Nonblocking I/O

Question: Say I have 10 sockets and I want to have a thread which checks for a message from the sockets using their InputStreams. The thread will wait in the

DevX - Software Development Resource

Foreign Keys

Question: How do I temporarily disable foreign keys in a table, insert more rows, and then enable them again? In particular, I need to know about syntax and what the