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...
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)...
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") %>...
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
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
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 =...
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!
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...
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.
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...
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 =...
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 :)
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...
How could i get individual date fields (not every one with me.Date.background = "green" 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...
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.