When I attempt to compile the class below, it returns this error:
C:\...\classes\northwind>javac Employee.java
Employee.java:11: unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
Class.forName(DRIVER);
^
1 error...
use a union query to create the recordset
select field1 from table1 where field2 like '%red%'
union
select field1 from table1 where field2 not like '%red%'
get it?
only catch - if you order the table you lose your ranking. there is a way around it but involves using sql to create temporary...
You can do a replace but you gotta use a regular expression.
You can see the syntax of the command at this website:
http://209.55.107.62/javascript/string.htm#1194258
p.s. that is the Netscape Javascript 1.3 documentation hosted on my machine at home using my DSL connection so don't expect...
Be careful about writing HTML code from your dll. When your client decides he wants a red font, you don't want to have to recompile your dll.
In general however, if you want to access the ASP built in objects you have four options:
1. Use ScriptingContext (bad)
2. Use ObjectContext (good)
3...
To create the link, use code like this:
Do while NOT oRS3.EOF
[tab]Response.Write "<tr>"
[tab]Response.Write "<td>" & oRS3("Style") & "</td>"
[tab]Response.Write "<td>" & oRS3("ArtistName") & "</td>"
[tab]Response.Write...
Heres an idea. I just threw this code together but heres the gist of it...
1. Display the wait message
2. Write the html of the table you are building to a file on disk
3. When the page is finished processing, redirect the user to the html page on disk.
<%@ Language=VBScript %>
<% Option...
Ooops, forgot to clean up after myself. At the bottom of the ShowPage routine, add the lines of code:
Rs.Close
Set Rs = Nothing
I turned this into an FAQ, you can see the better code in the FAQ section.
Wonder how to page through a large Recordset only showing X number of records at a time? So do a lot of folks, this question gets asked so many times here, I decided to put together a VBScript Class that will allow people to page a recordset. Here's the code and a page that will do it, just...
This question gets asked so many times here, I decided to put together a VBScript Class that will allow people to page a recordset. Here's the code and a page that will do it, just copy paste it into your favorite editor and start experimenting. You can definitely make the table prettier and...
Guestg is absolutely right. IE will try its best to URL Encode the URL for you. Netscape doesn't. If you have any spaces or special characters in your URL, Netscape chokes... and kicks that ugly error you describe. Use Server.URLEncode on any...
What type of Database are you using? If it is SQL Server, use the CONVERT function to convert the date into the format you want.<br><br>See Books Online for more info on CONVERT.<br><br>You will probably want to use the style 106 which will convert to "dd mon yy"<br><br>Most...
Put a hidden form element in your form which indicates the name of the form and use Select...Case to determine which stored procedure to run based on that form element.<br><br>Dim Rs 'recordset<br>Dim dsn 'datasource<br>Dim sp 'stored procedure<br>Dim...
Your connection string looks like a witches brew of parameters.<br><br>1. Where's your username and password in the connection string?<br><br>2. Why are you putting the driver and the DSN in the same connection string? If you've already set up DSN, you shouldn't need to also specify a...
A quick rundown of three ways to connect to a database
1. ODBC Manager
Enter all configuration information through the ODBC manager and the ODBC driver. Connect to your database like this:
"DSN=Northwind;"
2. DSN-less ODBC connection
Script the same information, connect with the...
A quick rundown of three ways to connect to a database<br><br>1. ODBC Manager<br>Enter all configuration information through the ODBC manager and the ODBC driver. Connect to your database like this:<br><br><FONT FACE=monospace>"DSN=Northwind;"</font><br><br>2...
I can think of three ways to do what you ask:<br><br>1. Format it with your SQL statement.<br>Not sure about the syntax for MS Access JET SQL (I use SQL Server). In SQL Server it's CONVERT (data_type[(length)], expression [, style]). To convert to US English, you would set...
I don't think "GO" is a valid keyword when you are passing the statement thru ASP. In fact, I'm pretty sure of it.<br><br>If you want to use the "GO" keyword you have to make your SQL statement into a stored procedure and call the stored procedure.<br><br><br> <p>...
Write the link to the page with JavaScript...<br><br><Script type="text/javascript"><br>document.write ("<A HREF='" + zip + ".htm'>Link</A>)<br></Script> <p> Jeff Friestman<br><a href=mailto: > </a><br><a href=...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.