Is this how I should do:
<input type="checkbox" value=<% =rsPro("ProdNum") %> name="productid" <% if inStr(productid,"-"&rsPro("ProdNum")&"-") then response.write ("Checked") %>><% =rsPro("ProdName") %>
The code doesn't check the boxes as if it doesn't see any match.
to save it in "-1-2-3-4-"???
thing is... when a software is added into a database, it can be the software for more than 1 product. Therefore, I had products' checkboxes so that user can check to the boxes that applied to the software added. After saved, the column in table will display, for...
Hello all,
I have a sql:
<input type="checkbox" value=<% =rsPro("ProdNum") %> name="productid" <% if inStr(productid,trim(rsPro("ProdNum"))) then response.write ("Checked") %>><% =rsPro("ProdName") %>
my intension is to get product name box checked if the product number matches with one of the...
Hello all,
i got this ERROR: "unterminated string constant" from a page and I pretty sure that comes from a Javascript code using for a pulldown rollover links. The links were pulling down fine until this morning, out of nowhere, they all dead, no pulling down anymore. An addition to that, I...
Hello all,
I want to create a text link in a Flash MX banner that, when clicked, will open another html page.
I tried
ButtonName.onrelease
getURL(www.hotmail.com, _blank);
But no luck! :-)
:-)
AHA!!!
Thank you for reminding me to link the dbconn file to this page.
I thought I did on the main page because this page is a portion of the larger main page. But I was wrong.
Thank you guys. :-)
Hello all,
I really don't know where this error is about
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
/includes/subnav/products_subnav.asp, line 3
My first few line of code are:
<%
sqlHots = "SELECT ShortName, ProductID, ManuID, ProdTypeID FROM tblProducts WHERE New = 1"...
Hello all,
I really don't know where this error is about
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
/includes/subnav/products_subnav.asp, line 3
My first few line of code are:
<%
sqlHots = "SELECT ShortName, ProductID, ManuID, ProdTypeID FROM tblProducts WHERE New = '1'"...
This is where I located Option Explicit in
"dbconn.asp":
<% Option Explicit %>
<%
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "Driver={SQL Server};" &_
"Server=xxx;" &_
"Database=xxx;" &_
"Network=DBMSSOCN;" &_
"Uid=xxx;" &_
"Pwd=xxx;"
%>
And everytime...
This is a portion of the whole page where the ERROR pointing to:
<%
Dim rs
Dim MSQL1
MSQL1 = "SELECT * FROM tblManufacturers"
Set rs = objConn.Execute(MSQL1)
Dim ProdTypeSQL, rs2
ProdTypeSQL = "SELECT * FROM tblProductType"
Set rs2 = objConn.Execute(ProdTypeSQL)
Dim sql1, rs1...
This page is a include file that was added to my another page. The main is already contain the Option Explicit.
However, I did add the Option Explicit to the top of the page and got another ERROR:
Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement...
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.