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 bkrike 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 CyrusAyers

  1. CyrusAyers

    Frames doing the opposite of what want them to :)

    Thought id cheat and ask... Is there a way to refresh the contents of a frame from within <%%>? I would like for the "Links" frame to display the members only links once the LoginValidate.asp page sets the session variable for a good loginID: <!-- LoginValidate.asp: --> <body...
  2. CyrusAyers

    IMG link &quot;sprucer&quot; from RS

    Interesting examples and suggestions! The following dosent generate an error to speak of, but the picture isnt showing... (all the other fields are coming up) <% Set oFS = Server.CreateObject("Scripting.FileSystemObject") imgvar = rs("imagebox") If oFS.FileExists("/RecipePictures/" & imgvar)...
  3. CyrusAyers

    IMG link &quot;sprucer&quot; from RS

    Gurus, It would be nice if my code could check the validity of a image src coming from a RS instead of just not showing an X on the blank ones - keeping nasty X's from onlookers in the case of a typeo. Is there a better alternative? <%if rs("imagebox")<>"" then strImage = rs("imagebox") %>...
  4. CyrusAyers

    how to use session variables in &lt;script&gt; tags

    Good point, but can a client side script "affect" session variables? Can it even see them? Is there a better way? Using hidden fields to communicate values is a bit tedious. Cyrus
  5. CyrusAyers

    how to use session variables in &lt;script&gt; tags

    This is pretty noob but: I know this works: <%session("variable1")=10%> But this generates an error: <SCRIPT LANGUAGE="VBScript"> session("variable1") = 10 </SCRIPT> What about javascript, etc? Thanks for your time, Cyrus
  6. CyrusAyers

    Redisplaying a new record after inserting, @@IDENTITY?

    Yes, ill try those out! I ended up using a session variable for the Refresh prob, and used: sql = "insert into foodguru (post_date, title, category, content) VALUES ('" & post_date & "', '" & Title & "', '" & Category & "', '" & Content & "');" conn.Execute(sql) Set RS =...
  7. CyrusAyers

    Redisplaying a new record after inserting, @@IDENTITY?

    PS what was happening was I got everything to insert and display again, but if the end-user somehow clicked REFRESH it would RE-insert a whole new record causing a confusing replica. Thx Again!
  8. CyrusAyers

    Redisplaying a new record after inserting, @@IDENTITY?

    Well this may be silly, but I feel like im not using all the tools at my disposal... You are right on, but what im asking would be: Server.Transfer "Final.asp?var=1" <--ERROR we know that So if on the "next.asp" page in your example i wanted to create an 'on the fly' Form variable in code...
  9. CyrusAyers

    Redisplaying a new record after inserting, @@IDENTITY?

    OK, ill try that. As a side note to the Server.Transfer... is there then a way to set Form variables i.e. request("Name"), from within the <%%> delimiters? Dropping a bunch of Session objects would seem equally inefficient.
  10. CyrusAyers

    Redisplaying a new record after inserting, @@IDENTITY?

    Hi, Im using Access with an ASP interface. The primary key for my records is an autonumber field (im calling it ID). I'm having problems re-displaying the contents of a form when its purpose is to insert a new record -- it dosent know what ID to use in the SELECT statement. Heres the code im...
  11. CyrusAyers

    Formatting a string for emailing

    (ok well, skip the <b> tags, ill remove those first...)
  12. CyrusAyers

    Formatting a string for emailing

    Id like to take an ASP string, and send it as the body of an email. This works fine, but id like to keep the <br> and <b> characters, etc. so it formats the same as in the "Preview email" page. Heres what i have (tried reading your posts) and it dosent work yet: Set objMail =...
  13. CyrusAyers

    Function not available on other computer?

    Yes that explains it, (ive yet to try it on the computer at work), but is there a way the references can be kick-started thru VBA, perhaps, so it is more seamless? Heres where i read about your suggestion: http://support.microsoft.com/default.aspx?scid=kb;en-us;194374 Thank you :)
  14. CyrusAyers

    Function not available on other computer?

    My DB uses action and select queries to build, manipulate tables and display data. I also use the DAO commands in VB. When I run it at home im ok, but at work the form gives this error when opened/buttons clicked/boxes displayed, etc: Function is not available in query expression...
  15. CyrusAyers

    Conditionally Formatting a Date Field

    How could i get individual date fields (not every one with me.Date.background = &quot;green&quot; or whatever!) on a continuous sub-form to change green if the Day of the date is <= 10th? This would indicate an on time payment and would be far easier to read. Thanks in advance to any help on...

Part and Inventory Search

Back
Top