Thanks to you as well, Sheco. Now I know that I'm a novice at ASP. I have a session check script at the top of the page the user is taken to after they have logged in. I don't have it on any other pages.
Based on this knowledge, I see where I'm truly going wrong with this. Like I've said...
Thanks vbkris for the quick response. The page did continue to work.
I'm a bit of a novice with a growing knowledge of ASP. Could guide me in the right direction as to how I can find the error in my session checking?
Again, any and all suggestions and advice is greatly appreciated.
Hello everyone. I have an application (ASP and SQL Server) that requires a user to login and logout. When the user logs out, it takes them to the appropriate page. However, if they were to click the "Back" button on their browser, they still have access to the last page they had visited. Is...
GuitarDave78, that last loop that you gave me did the trick!
I used the following:
for each item in varChoseTime
sTime = sTime & "," & item
next
If var0630am = "Yes" and instr(sTime,"06:30:00") <=0 Then
Response.Write "<tr><td align=right>6:30 AM</td>" & "<td><input type=radio name=appttime...
Also, GuitarDave78, I tried your join...instr suggestions and I received this error.
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'join'
/appttime.asp, line 183
Again, any suggestions and advice is greatly appreciated.
TsDragon, I also tried your if not flag then suggestion. I received the following error
Microsoft VBScript runtime error '800a0009'
Subscript out of range
/appttime.asp, line 190
I know now that this means that the code is trying to get an array element that doesn't exist.
Any other...
Okay, GuitarDave78, I tried the response.write ubound(varChoseTime) and received 0.
My question is how is that I can receive a list items in the array if I do this:
for each item in varChoseTime
Response.Write item & "<br>"
next
but not when I use the response.write ubound(varChoseTime)...
Thanks to you also, TsDragon. However, I'm not sure I follow what you're saying. If I set my logic to true, it's not suppose to do anything. However, if it's false I want it to response.write my html code.
From what I can see the if...then statements work aside from the fact that it only...
Thanks again for appreciated help, GuitarDave78! However, I'm getting an error:
Microsoft VBScript runtime error '800a0009'
Subscript out of range
/appttime.asp, line 189
Any other suggestions?
Hello all. I'll do my best to explain this. I've been having a bit of trouble figuring this one out. I have this application that queries the database (SQL Server) based on personnel and appointment date. I then perform GETROWS on the recordset for one field only (appttime) and this data is...
WOW! You saved me again! I am truly learning a great deal from you. Can you recommend any great books and/or tutorials. I NEVER would have came up with this solution.
You are awesome! Thanks again so much!
This is what I'm getting from the last set of code you offered:
9:00:00 AM--8:30:00 AM
9:00:00 AM--9:00:00 AM
9:00:00 AM--9:30:00 AM
9:00:00 AM--10:00:00 AM
9:00:00 AM--10:30:00 AM
9:00:00 AM--11:00:00 AM
9:00:00 AM--11:30:00 AM
9:00:00 AM--12:00:00 PM
9:00:00 AM--12:30:00 PM
9:00:00 AM--1:00:00 PM
Hey Steven290! Thank you SO much for replying. I tried your code and it's not putting the "Selected" text in the Option code. The objRS("bhsunopen") does falls within the "addTime" results, but it's just not catching the SELECTED. Here's what it looks like when I view the source in HTML...
Hello everyone and anyone. I'm a novice at ASP but am learning a great deal from this forum. I have a piece of looping code that I'm trying to manipulate to look at an if-then, but I'm not sure that it's possible.
I'll do my best to explain this. The code creates a drop-box. It's contents...
Steven290, you are amazing! Thank you, thank you, thank you so much. I was thinking about splitting the time but I was way off by not thinking about the LEFT and MID functions. Again, thank you so much! I absolutely love this forum. I know it's corny but I just had to get that off my chest. :)
Thanks so much steven290 for responding. I do appreciate your help. However, this didn't work. It's displaying as "5:00:00 PM".
Any other ideas? I'm wide open to them, believe me. :)
Hello everyone and anyone.
I know that there is a real simple solution to this beginner's problem but for the life of me, I can't find the solution for this.
I'm using ASP with an SQL database. I need to convert datetime data such as "17:00:00" into "5:00 PM". I've tried "vbshorttime" but I...
TSUJI, you are amazing! I'm learning so much just from your help. Being a newbie, I never would have caught on to that solution. Again, thank you so much.
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.