Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mmcgon

  1. mmcgon

    Response.Redirect Problem

    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...
  2. mmcgon

    Response.Redirect Problem

    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...
  3. mmcgon

    Dynamic color in an imagemap

    I was thinking that there might be a way to color the polygons in the imagemap that overlays the actual image, but I can't see a way to do it.
  4. mmcgon

    Dynamic color in an imagemap

    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.
  5. mmcgon

    Dynamic color in an imagemap

    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?
  6. mmcgon

    Problem with Powerpoint link in ASP

    Shouldn't this line in function AddHeaders: ContentType ="application/ms-powerpoint" be ContentType ="application/vnd.ms-powerpoint" ???
  7. mmcgon

    send generated RTF file directly to browser

    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...
  8. mmcgon

    send generated RTF file directly to browser

    How are you generating your binary data? How are you storing it?
  9. mmcgon

    send generated RTF file directly to browser

    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 =...
  10. mmcgon

    detect subdomain

    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
  11. mmcgon

    detect subdomain

    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...
  12. mmcgon

    ADO Recordset Best Practices

    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/...
  13. mmcgon

    CSng

    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(&quot;iprice&quot;)) * vat)
  14. mmcgon

    Why do these 2 pieces of code produce different outputs?

    You are missing a double quote mark after your first <%= %> grouping, between the >>. Should be: <option Value=&quot;<%=RS2(&quot;PictureID&quot;)%>&quot;><%=RS(&quot;Picture_Title&quot;)%></option> Michael
  15. mmcgon

    continuation line

    Just put an underbar (_) at the end of each line before the carriage return. Michael

Part and Inventory Search

Back
Top