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. SarkMan

    Converting string to date

    use the cdate function like so cdate("01/15/2004")
  2. SarkMan

    FSO - Simple Problem

    you could use a counter like so ******************************* Dim objFile dim iCounter iCounter=0 For Each objFile in objFolder.Files 'Print out the name If InStr(1, objFile, strSearch, 1) Then iCounter=iCounter+1 Response.Write &quot;<L1><A...
  3. SarkMan

    Trouble with calling sub from a sub..?

    You can do that but you need to use remote scripting or create a web service and use the webservice behavior(webservice.htc is available for download on the microsoft site) Here are some links that may help...
  4. SarkMan

    For Gurus:Error in ASP page in one database but not in another!!

    Have you checked permissions on the stored proc. Maybe the permissions in prod are different than in you test environment.
  5. SarkMan

    WSH Script

    try this Dim Input Input = InputBox(&quot;Enter your name&quot;) MsgBox (&quot;You entered: &quot; & Input)
  6. SarkMan

    Comparing Dates Month and Day only

    use the datediff function Returns the number of intervals between two dates. DateDiff(interval, date1, date2 [,firstdayofweek[, firstweekofyear]]) The DateDiff function syntax has these parts: Arguments interval Required. String expression that is the interval you want to use to calculate...
  7. SarkMan

    Checkbox value

    Since you have a reference to the object passed into the function, you can get any value associated with the object. You can get its name(part detail) in your function as so: <script language=&quot;javascript&quot;> function showInfo (blah){ //var indVal = document.forms.value...
  8. SarkMan

    Selecting top x rows from a cube

    You could use ado and mdx (Multidimensional Expressions) use this link for an into to mdx (use topcount function for your needs) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnolap/html/intromdx.asp?frame=true and here is a link showing vb and ado...
  9. SarkMan

    Checkbox value

    You are passing this.name to the function. Pass this (i.e. onClick=&quot;showInfo(this);&quot;) this passes a reference to the checkbox object. You can then check the value to see if it is checked: blah.checked use this code for testing <TD><INPUT TYPE=&quot;checkbox&quot...
  10. SarkMan

    Type mismatch

    should this KCO(i) = Request.Form(&quot;KCOCodes&quot;)(i) be this KCOCodes(i) = Request.Form(&quot;KCOCodes&quot;)(i)
  11. SarkMan

    Trouble with calling sub from a sub..?

    Add a </script> tag at the end of the last btnLogin_onclick() sub
  12. SarkMan

    simple comparison of 2 text boxes

    First == means they are the same So this statement document.form1.pwd.value == document.form1.pwd2.value says that if pwd=pwd2 then execute the code with in the block. I assumed that you do want them to be not equal to execute the code in the block since you have the alert alert('The passwords...
  13. SarkMan

    simple comparison of 2 text boxes

    try this for your function function ValidateForm(){ if (document.form1.pwd.value != document.form1.pwd2.value) { alert('The passwords did not match'); document.form1.pwd.value = &quot;&quot;; document.form1.pwd2.value = &quot;&quot;; document.form1.pwd.focus()...
  14. SarkMan

    Cannot get ASP page to display

    Is it executing any asp. Try uploading a generic page to see if asp works. like this <% Response.write(&quot;ASP works on this server&quot;) %>
  15. SarkMan

    Cannot get ASP page to display

    yes. It works fine in my browser. What version are you using? I am using IE 6.0
  16. SarkMan

    Problem with dynamic select box

    I changed this for (m = temp.options.length - 1; m > 0; m--) temp.options[m] = null; to this for (m = temp.options.length - 1; m >= 0; m--) temp.options[m] = null; the select starts at 0. I also put fixed width for the table to prevent jumping around. try this: <HTML> <HEAD> </HEAD> <BODY>...
  17. SarkMan

    Cannot get ASP page to display

    I don't know if you uncommented the option explicit. But when I did I found 2 more error. Try this now <%@ Language=VBScript %> <% option explicit %> <html> <head> <title>Calendar</title> </head> <body> <% 'Get month name function GetMonthName(iMonth) Select Case iMonth Case 1...
  18. SarkMan

    Cannot get ASP page to display

    try this <%@ Language=VBScript %> <% 'option explicit %> <html> <head> <title>Calendar</title> </head> <body> <% 'Get month name function GetMonthName(iMonth) Select Case iMonth Case 1: GetMonthName = &quot;January&quot; Case 2: GetMonthName = &quot;February&quot...
  19. SarkMan

    document.write problem

    try this cookie1 = &quot;Your browser settings are set to reject cookies. You can either lower your settings by choosing Medium in the Internet Options located in the Tools Menu or you can visit <a href='www.abc.com/agentlogin.asp'>www.abc.com/agentlogin.asp</a> to login without using...
  20. SarkMan

    Find if specific date exsit in a week range

    You could try something like this dim sDate sDate=&quot;12/29/2003 - 01/05/2003&quot; dim arrDate arrDate=split(sDate,&quot; - &quot;) sdate1=cdate(arrDate(0)) sDate2=cdate(arrDate(1)) if (year(sDate1) <> year(sDate2) ) then msgbox &quot;Year has changed&quot; else msgbox &quot;Year has not...

Part and Inventory Search

Back
Top