Search Results - ASP Message Board

Search:

Type: Posts; User: Bill Wilkinson

Page 1 of 20 1 2 3 4

Search: Search took 1.31 seconds.

  1. Replies
    2
    Views
    28

    But I just reaslized this doesn't make a lot of...

    But I just reaslized this doesn't make a lot of sense. If a given order_id has 7 different products in the order, then your code will change quantity for all 7 products!

    Shouldn't the code really...
  2. Replies
    2
    Views
    28

    *IF* the fields in the are

    *IF* the fields in the <form> are <input type="text"> or <select> then we can fix this with no changes needed in your code that CREATES the <form>.

    *IF* that is all true, then:

    <%
    quantities =...
  3. I have been coding exactly this way in VBScript...

    I have been coding exactly this way in VBScript (old ASP) and PHP for years now. It is the only practical way if you want the web page to give the user a message WITHOUT requiring a round-trip to...
  4. Sorry about the 5 vs. 7 misup. Too much copy,...

    Sorry about the 5 vs. 7 misup. Too much copy, not enough edit.

    As for how you get the value of hoursDiff: Again I ask, how are you getting the values for all those other {n} entities? You are...
  5. AHA!!! i HAD IT ALL BACKWARDS! i thought that...

    AHA!!! i HAD IT ALL BACKWARDS!

    i thought that the hoursDiff was being computed *TOO LATE*. Instead, it's computed too early!

    So this is actually much simpler than you thought!

    You can do...
  6. So you are trying to generate a link (

    So you are trying to generate a link (<a href="....">) but to what page??? Is it some external site you have no control of? If it's an internal page, why not just use normal ASP.NET postback (to...
  7. Well, for starters, just look at the URL of that...

    Well, for starters, just look at the URL of that "Reserve.aspx" page.

    *DO* you see hoursdiff=xxx any place in the URL??

    If not, then it's not getting placed there so the Request.QueryString...
  8. Can you show this to me live? Give me a URL to...

    Can you show this to me live? Give me a URL to look at? Tell me how to get to this point? PM me if you want to keep the URL private.
  9. If that var declaration is INSIDE of some...

    If that var declaration is INSIDE of some function (or object method, same thing) then you need to MOVE the declaration to global scope. When you use var inside a function, that variable is not...
  10. One more improvement: Making MySQL do the CONCAT...

    One more improvement: Making MySQL do the CONCAT just to find out if the combined length is 8 is an unnecessary step. *Especially* if the field word is the PRIMARY KEY of that table (I hope it is!)...
  11. The problem with the above query is that it has...

    The problem with the above query is that it has to generate *ALL* the possible 8 letter word pairs before it can then pick 5 at random.
    It's quite possible that it would need to generate 10 million...
  12. Throw out *ALL* of the JS code we have tried to...

    Throw out *ALL* of the JS code we have tried to use with this *EXCEPT* this code:

    <script type="text/javascript">
    var links = document.getElementsByClassName("js_siteid");
    if ( links.length >...
  13. The DISTINCT in there is only needed if you have...

    The DISTINCT in there is only needed if you have words such as (examples only)
    packs + end
    pack + send
    where you can get the same 8 letter combination in multiple ways.
  14. HORRIBLE HORRIBLE way to code that! You have to...

    HORRIBLE HORRIBLE way to code that! You have to keep making SQL queries to get one pair of words at a time until you find a pair that are 8 characters long.

    And heck, you aren't even...
  15. Sure. Easy. BUT... But the problem is that...

    Sure. Easy. BUT...

    But the problem is that if the control does not exist (yet) then we can't use siteid.clientID (yet).

    So I think you have to use the creation/existence of that siteid...
  16. Sorry, but this is now an ASP.NET problem. The...

    Sorry, but this is now an ASP.NET problem. The message "'siteid' is not declared. It may be inaccessible due to its protection level" is ASP.NET, not JavaScript. You will have to figure out how to...
  17. You should able to put this line DIRECTLY AFTER...

    You should able to put this line DIRECTLY AFTER the line where you calculate the hoursDiff:
    document.getElementById("<%=siteid.ClientID%>").hr ef += ( "&amp;hoursdiff=" + hoursDiff );

    Try it. If it...
  18. Okay, so I was basically right. ...

    Okay, so I was basically right.


    document.getElementById("gvCustomers_ctl02_hdReserve").href += ( "&amp;hoursdiff=" + hoursDiff );

    Now, the problem you have is that the ID there *CAN* change if...
  19. But here's a question for you: Is your...

    But here's a question for you: Is your "reserve.aspx" page able to accept another querystring name=value pair?

    I am *guessing* that this will be as easy as doing
    ...
  20. Unless you are doing something special in your JS...

    Unless you are doing something special in your JS code, the line

    var hourDiff = endDate - startDate; will give you the difference in milliseconds.
  21. Shouldn't be hard. Bring up the page in...

    Shouldn't be hard.

    Bring up the page in question.
    RIGHT click on the page (but not in an image and not in a form field)
    In the little popup menu, click on VIEW SOURCE (or view page source or...)...
  22. http://www.microsoft.com/en-us/download/developer-...

    http://www.microsoft.com/en-us/download/developer-tools.aspx

    Download either the free version of visual studio or just the framework.
  23. Replies
    4
    Views
    11,097

    You are replying in a thread that is almost FIVE...

    You are replying in a thread that is almost FIVE and a half YEARS old. Don't do that. Start a NEW thread.
  24. Replies
    4
    Views
    8,236

    Donkey: You replied to a thread that is almost 3...

    Donkey: You replied to a thread that is almost 3 years old. And did you not notice that the 2 posts in this thread are the only ones made by refriedwhiskey? He will never see your answer.
  25. Replies
    1
    Views
    364

    Do you mean ASP (very old technology...no longer...

    Do you mean ASP (very old technology...no longer under active maintenance at Microsoft) or ASP.NET? There is a *HUGE* difference.

    And how do you mean "if the user's email has been used"? Used...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4