Search Results - ASP Message Board

Search:

Type: Posts; User: Bill Wilkinson

Page 1 of 20 1 2 3 4

Search: Search took 1.13 seconds.

  1. Searching in files is tedious at best. You...

    Searching in files is tedious at best.

    You really have no choice but to open each file, read in all its contents, search through all the text in the entire file, somehow write out/highlight lines...
  2. If you use code such as Set location to...

    If you use code such as

    Set location to database
    location = Server.MapPath("../data/someAccessFile.mdb")




    ' DSN-less connection string
    connStr = "Provider=Microsoft.Jet.OLEDB.4.0; Data...
  3. I got it!!! One trick was to use MultiLine. The...

    I got it!!! One trick was to use MultiLine. The other was to use $1 (as shown) in the replacement.


    <%
    str = "this line ends in a period." & vbNewLine _
    & "this line has no period but 3...
  4. Anyway, this bug (?? is it??) is not limited to...

    Anyway, this bug (?? is it??) is not limited to VBScript. It also appears in JavaScript (and JS in a Chrome browser, no less...so not just a Micro$oft quirk).

    Exhibit:

    <script>
    var str =...
  5. I don't understand this, at all. First you say...

    I don't understand this, at all. First you say
    But then you are using your code to do


    If strFormat = "HTML" Then
    strHTMLStart = "<html><head><style type=""text/css"">body...
  6. There'a a much easier way to do that, you know. ...

    There'a a much easier way to do that, you know.


    mytime = "18:03:15"
    prettyTime = FormatDateTime( CDate(mytime), vbLongTime )
  7. Replies
    2
    Views
    209

    starttime = "18:59:00" ' string endtime =...

    starttime = "18:59:00" ' string
    endtime = "05:59:00"


    starttime = TimeValue(starttime) ' time
    endtime = TimeValue(endtime)

    *OR*
  8. Replies
    6
    Views
    799

    In other words, something as basically simple as...

    In other words, something as basically simple as this:

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>


    <!DOCTYPE html PUBLIC "-//W3C//DTD...
  9. Replies
    6
    Views
    799

    Well what I would do is consolidate *ALL* the...

    Well what I would do is consolidate *ALL* the above into a single web page.

    Then just use an IF in the Page_Load:

    If the user's credentials were invalid, just display a message to that effect...
  10. Replies
    3
    Views
    409

    And, finally, why mention the History table? You...

    And, finally, why mention the History table? You aren't using it in that query, at all.

    One thing you could have done, to simplify the coding considerably, would have been to have a table of...
  11. Replies
    3
    Views
    409

    Why would adding a new user EVER cause problems...

    Why would adding a new user EVER cause problems for this query?

    The query is just getting a SUM of all pay in a given month. It doesn't even LOOK at users or care how many users there are.
    ...
  12. Replies
    3
    Views
    409

    I don't understand. Yes, this could be done, but...

    I don't understand. Yes, this could be done, but essentially you are asking SQL Server to DUPLICATE the work.

    You will get all the information for the prior month (all the months from January...
  13. Assuming CMI is the name of the database and CORE...

    Assuming CMI is the name of the database and CORE is the name of the table you are looking at:


    <%
    Set conn = Server.CreateObject("ADODB.Connection")
    conn.Open "Provider=sqloledb; Data...
  14. Replies
    6
    Views
    799

    Okay, then the redirect should do okay for what...

    Okay, then the redirect should do okay for what you have so far.
  15. HINT: Show your code. Hard to know what you...

    HINT: Show your code. Hard to know what you might be doing wrong without that.

    User.Identity.Name is only going to work if you are using the .NET package that uses that structure (and maintains...
  16. One more time: *WHAT* is the error you...

    One more time: *WHAT* is the error you get?????And error 500 MEANS NOTHING. You need to either change your ASP server so that it shows the details of an error (and then also change your browser to...
  17. Replies
    6
    Views
    799

    So you said "I add a new Web page to my aspx...

    So you said "I add a new Web page to my aspx project ". Fine. But then what did you put in the <form> of that web page? And why would you Redirect on the page_load event? You should only...
  18. But there's really no reason to close the...

    But there's really no reason to close the recordset or set it to nothing. ASP will do that for you, automatically. There was a bug, in 1997, where ASP would occasionally not do so. The bug was...
  19. DEBUG DEBUG DEBUG!! Trap the error: ......

    DEBUG DEBUG DEBUG!!

    Trap the error:


    ...
    On Error Resume Next
    RS.Close
    If Err.Number > 0 Then
    Response.Write "Error on close: " & Err.Description & "<hr/>"
  20. Sure, there are several ways to do this. If...

    Sure, there are several ways to do this.

    If you want to duplicate the ASP/ASP.NET code on each server, then you could just submit the <form> to all 3 sites.

    A better way would be to have the...
  21. Show the rest of your code. That code you showed...

    Show the rest of your code. That code you showed will *NOT* create any file. It just creates an object that *THEN* can be used to store FDF to a file.
  22. Replies
    3
    Views
    593

    strRecords = "" & vbNewLine do while not rs.eof...

    strRecords = "" & vbNewLine
    do while not rs.eof
    strRecords = strRecords & _
    "<a href=""maint_print.asp?RdID=" & _
    rs("RdID") & "&WONum=" & rs("WONum") & """>" & _
    ...
  23. Replies
    2
    Views
    877

    You certainly need to specify full path names for...

    You certainly need to specify full path names for the .htm and .pdf files!
    Else they will be assumed to be in a C:\windows\xxx directory and you
    will *NOT* have permission to write there and maybe...
  24. Replies
    1
    Views
    981

    Nothing to do with ASP. Should have been asked...

    Nothing to do with ASP. Should have been asked in a PHP forum.

    But really he should be getting the username and password
    from whomever administers his site.
  25. Replies
    1
    Views
    365

    How do you know the problem is with sessions? ...

    How do you know the problem is with sessions?

    Assuming you are right:

    Remember that sessions depend upon cookies working.
    If somehow your site has been marked as a SPAM producer
    by the major...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4


More ASP Resources

Resources:
-- ASP Articles
-- ASP.NET Information
-- 4Guys ASP F.A.Q.
-- ASPFAQs.com
-- ASP Coding Tips
-- Related Web Technologies
-- User Tips!!
-- JavaScripts


Development Centers
-- HTML5 Development Center
-- Windows Mobile Development Center
-- Android Development Center
-- Cloud Development Project Center


Development Technology
Check out these sites for more articles, tutorials, FAQs, discussions, and code!
-- CodeGuru.com
-- VBForums.com
-- DevX.com
-- Developer.com
-- HTMLGoodies