It's not clear to me how you get to index.asp in the second two examples, as there is no redirect to this in your sample code. Is your logon test in index.asp, and you are passing the test and just staying in that file?
If you hadn't shown the two examples with the slash, I would say that...
It's not clear to me how you get to index.asp in the second two examples, as there is no redirect to this in your sample code. Is your logon test in index.asp, and you are passing the test and just staying in that file?
If you hadn't shown the two examples with the slash, I would say that...
I want to color the states based on info that I pull out of a database using ASP/VBScript. I can use that to generate the Javascript to color the states on the fly, but I don't know if the coloring part is even possible.
Let's say I have a web page that contains an image of the USA and a clickable image map that links to other pages based on the state that is clicked.
Is it possible to dynamically color some or all of the polygons in the image map to let the viewer know that they should click on certain states?
Well, it turns out that you don't even need all this stream crap if you are delivering the content via the web. Just do this:
<%@ LANGUAGE = VBScript %>
<%
Response.AddHeader "content-disposition", "attachment; filename=test.rtf"
Response.ContentType = "application/rtf"
Response.Write...
How about something like this? I usually get stuff from a file, but I've modified this code to work with bytes you've crammed into the variable MyRTFStuff:
<%@ LANGUAGE = VBScript %>
<%
Dim objStream, MyRTFStuff
On Error Resume Next
'Create a stream object
Set objStream =...
Genimuse, thanks for the tip. For this particular site, we don't really want the spiders to follow. But I can see valuable uses for Server.Transfer.
Thanks!
mmcgon
It depends on your ISP, too. We use discountasp.net and they allow unlimited subdomains as an upgrade. All subdomains are directed to our home page, and our default.asp script in the root directory of the web does this:
1. Picks out the subdomain the user entered using...
I've been using ADO in ASP scripts for a while and wanted to gather some opinions about the best cursors and locktypes to use when working with recordsets. I am using an OLEDB connection to SQL Server 2000.
It looks to me like this:
1. If using a recordset in record order: adOpenForwardOnly/...
Change the recordset data to a single, then multiply by vat (which I hope is a single as well). Like this:
price = CCur(CSng(retriveRS("iprice")) * vat)
You are missing a double quote mark after your first <%= %> grouping, between the >>.
Should be:
<option Value="<%=RS2("PictureID")%>"><%=RS("Picture_Title")%></option>
Michael
I have an imagemap of the United States with each state defined using <area> tags that link to specific html pages. I would like to change the displayed color of the various polygons in the imagemap on the fly based on data stored in a database. For example, all the states in the gif file are...
I'll be using either Access or SQL Server. I'd like to do it without using a stored procedure so I can use it for either database.
What I'm really interested in is seeing if there is an easy way to append a recordset I have obtained from one table to another table without having to loop through...
I need to archive a set of records in one database table, moving and appending them to a table with an identical structure, using ADO. What is the slickest way to do this?
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.