devxlogo

Tip Bank

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’

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

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

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

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

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

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

List Selection Actions

Question: When someone selects one item on my list, I want an inputfield to appear next to it. How do I do this? Answer: Rather than provide you with the