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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. phuctran

    .ASP file cannot be found in EI

    sometimes, just reboot the system will fix the problem.
  2. phuctran

    .ASP file cannot be found in EI

    first of all, make sure that IIS is running, sometimes it stops suddently. Or just restart it. next, try http://127.0.0.1/nocat/default.asp instead of localhost.
  3. phuctran

    Distinct values in an array

    if your datatype for datetime is char then you will have spaces at the end of the string to fill out all the length of the field. That is why you need TRIM to trim them out before you compare. ' Oct. 5' is different than 'Oct. 5'. Maybe that is the reason. After adding TRIM, do you get the...
  4. phuctran

    Problem selecting SQL records only if specified field is not null.

    How about mySQL="SELECT tracking, notetime FROM tracking WHERE orderid like " & orderid & " and tracking is not null ORDER BY noteTime
  5. phuctran

    "click here to download"

    There are two ways to do so 1. in the asp file where you have the link: <a href=&quot;myapp.exe&quot;>click here to download</a> when user clicks on the link, the browser will download that file and let user chooses between &quot;Save&quot;, &quot;Open&quot;, &quot;Cancel&quot;. 2. <a...
  6. phuctran

    Distinct values in an array

    I would use Dictionary to check for duplicated values. Before you add one item (date) into the Dictionary, you use object.Exists(key) to check. If (object.Exists(key) Then 'do nothing Else 'add into Dictionary End If
  7. phuctran

    if ... then statement

    Try to use isDate function. Dim MyDate, YourDate, NoDate, MyCheck MyDate = &quot;October 19, 1962&quot; YourDate = #10/19/62# NoDate = &quot;Hello&quot; MyCheck = IsDate(MyDate) ' Returns True. MyCheck = IsDate(YourDate) ' Returns True. MyCheck = IsDate(NoDate) ' Returns False. Like If...
  8. phuctran

    Redirect user if they type in the full path of a 'No public access' pg

    create an default.asp (set it to be default page in IIS -- by default it is), then write one line <% Response.Redirect &quot;login.asp&quot; %>
  9. phuctran

    Can't conditionally include server script files

    You should read this post thread333-670076
  10. phuctran

    asp Remember me Login!

    You need one more information for the cookies (Expires) Response.Cookies(&quot;LoggedIn&quot;).Expires = Dateadd(&quot;d&quot;, 3, Now) That cookies will be expired 3 days later. If you don't have Expires, that cookies will be discarded when the browser is closed (like Session).
  11. phuctran

    Can't conditionally include server script files

    All include files are loaded into asp files before any ASP code is executed. Therefore, you cannot use that method to select which include files you want to load based on an ASP conditional statement. I believe that this topic has been discussed many times. You should search here to find more...
  12. phuctran

    asp Remember me Login!

    You cannot use Session in this case. After IE is closed, all session variables will be gone. When user opens new IE, new session varialbes will be assigned to that IE (exactly to that SessionID). You have to use cookies to save username and password on client's PC, so that, you can retrieve...
  13. phuctran

    open file from web server

    besides adding <% and %> you need an asp interpreter (like IIS, Chili!Soft ASP, ... I think you don't have it so you got error after adding <% and %>. Sorry, I don't know any free asp server to re-distribute.
  14. phuctran

    open file from web server

    the vbscript you wrote is client-side script, it will process only files on client's PC. If you want to open files on server, you must use server-side script. VBScript in HTML file will only run on client's PC.
  15. phuctran

    open file from web server

    oh, the file should be .asp not .html
  16. phuctran

    open file from web server

    You are running a client-side script. To make it a server-side script, put your VBScript inside <% and %> and use Server.CreateObject instead of CreateObject <% Option Explicit Sub tstvb() dim filesys, readfile set filesys = CreateObject(&quot;Scripting.FileSystemObject&quot;)...
  17. phuctran

    Calling vbscript from ASP

    This is not exactly what you want, but this is an example that you can pass ASP variable to a client-side JavaScript. I tested. page1.asp <head> </head> <body> <form action=&quot;page2.asp&quot; method=&quot;POST&quot;> <input type=&quot;text&quot; name=&quot;s&quot...
  18. phuctran

    Setting Future Dates - Question

    you have the date 2/25/2003. I think you can use DatePart(&quot;w&quot;, &quot;2/25/2003&quot;) Result 1 -> Sunday .... 7 -> Saturday
  19. phuctran

    URL Link cut off in EMAIL

    Just a thought. I think that you use OutLook or some email client to read the email. Maybe that email client automatically break the line and go to the next line if that line is long (I think usually they set 78 chars/line). In this case, the link is not long but Len(the text and the link) is...
  20. phuctran

    Calling vbscript from ASP

    when you use Call VBFunction (sql) asp will call server-side function. I think you should use like this (not tested) <% 'create SQL string from posting asp 'asp code here sql = &quot;This is my sql&quot; %> <head> <script language=vbscript> function vbFunction(<%=sql%>) 'vb code here...

Part and Inventory Search

Back
Top