devxlogo

Tip Bank

XML in ASP vs a Java Servlet

Question: I am building a Web application using ASP and XML. My database calls are directed to a server with a Java servlet over HTTP. It works fine except when

Let Your Text Throw A Shadow

It is very easy to add a shadowy effect to drawn text in Java. All we have to do is to pick a darker color for the shadow and draw

Generate a Relative Path

Sometimes in an application you will have a “home” directory associated with the application, and then some files associated with that home directory. To have the files in an independent

Test Both Strings and DOM

Browsers Targeted: Internet Explorer 3+ It used to be a truism that manipulating strings was always much slower in DHTML than working directly with the Document Object Model (DOM), but

Finding Cursor Position in TextBox

Question: How can I find the current cursor position in text box? Answer: You can use the SelStart property of the TextBox to indicate where the cursor is in the