User Profile

Collapse

Profile Sidebar

Collapse
jhardman
jhardman
Last Activity: Jul 15 '21, 04:03 PM
Joined: Jan 31 '07
Location: logan, utah
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi Peter,

    Wow, this was from a long time ago! I remember this thread though.

    I'm afraid I don't like wordpress and have never tried to work with it. If I have some time maybe I can look up how to make a wordpress plugin, but if you find someone else to make a wordpress plugin I would be willing to help write the regex to exclude or flag some posts.

    Jared
    See more | Go to post

    Leave a comment:


  • jhardman
    started a topic get razor page to work WITHOUT visual studio

    get razor page to work WITHOUT visual studio

    Do any of you know how to get IIS to run a cshtml page WITHOUT USING VS? it should be a simple include or assembly reference or something like that, but I am stumped.

    I am an old-school programmer and at this point of my career I don't want to learn how to use Visual Studio. I have a simple task I need to accomplish and I can program in any common language with a little trial and error. but now every tutorial seems to be geared to...
    See more | Go to post

  • jhardman
    replied to browser resends ajax request?
    re-worked it to run for ten seconds and respond back with how far it got, then set a timer in the javascript to call it again starting where it left off if it wasn't finished. seems pretty kludgy to me. is that what you had in mind?

    Jared
    See more | Go to post

    Leave a comment:


  • can't format my decimal as currency - input string was not in correct format

    i have decimals coming in from a SQL Server db, and displaying them without converting them works.
    Code:
    response.write ("<td>"& i & "</td>")
    I can add and subtract without any errors
    Code:
    response.write ("<td>"& i+3.5 & "</td>")
    response.write ("<td>"& i+0.0 & "</td>")
    and i can use that last to trim off...
    See more | Go to post

  • jhardman
    started a topic browser resends ajax request?

    browser resends ajax request?

    I have a web app that updates a very large file. processing time takes around 45 seconds (and this is good. there might be ways to trim that down, but it is seriously a huge file). I use (old-school) ajax (not jquery) to call a web service that runs through the file, it checks for errors and updates a database. everything seems to be working EXCEPT that the browser keeps re-sending the ajax request every 30 seconds if it doesn't get a response....
    See more | Go to post

  • is this going to the case else every time?

    syntax should be:

    Code:
       Case "sicDescrSubmit"
                                myQuery="sicDescrSubmit"
                            Case "SicSubmit"
                                myQuery="SicSubmit"
    value should be in quotes. but I'm not sure that is the only issue.
    See more | Go to post
    Last edited by jhardman; Nov 28 '17, 11:27 PM. Reason: code tags

    Leave a comment:


  • IIS is serving .asp page as a file to download, not running the script

    I set up a classic ASP script some time ago on a win2003 box running IIS v6.1. recently there was a server crash, backups were restored and several people have had their hands in the pot. They finally called me back in and I can't tell what they did to screw it up.

    When I navigate to the .asp page internet explorer asks me if I want to open or save the file and serves me the raw script code, not executed. I don't know how that is...
    See more | Go to post

  • page cant be displayed... must have missed something easy

    I'm a bit rusty on web management, excuse me for silly question.

    I have a customer with unusual security who required me to deploy a separate web site in IIS because the standard user for the website already in-use doesn't have permissions to use certain components... long story short: I tried to deploy this new website but am getting "this page cannot be displayed" as if the server isn't accessible. I feel like I missed...
    See more | Go to post

  • jhardman
    replied to html help
    I think he is just saying he wants a paragraph indented, like how we used to do blockquotes:
    Code:
    <p>normal paragraph</p>
    <blockquote><p>indented paragraph(s)</p></blockquote>
    <p>another section of normal paragraphs</p>
    or whatever. The best way to do it is with css. If you haven't gotten to css yet, then try the old deprecated blockquote tag and see if that gets you what you want. most browsers...
    See more | Go to post

    Leave a comment:


  • jhardman
    replied to My asp file cannot open in browser
    IIS is microsoft's web server software. If you are using a Microsoft operating system then the server is probably going to use IIS. I think at least on windows.
    See more | Go to post

    Leave a comment:


  • you could also write it
    Code:
    <div><%
    response.write SaveFiles
    %></div>
    but the result is the same.

    Let me know if this helps.

    Jared
    See more | Go to post

    Leave a comment:


  • Luk3r, please don't confuse me, we are talking ASP, not ASP.net :)

    Bluenose, this is easy. the function can be anywhere, for ease of reference, put it on the top of the page. write the divs like this:
    Code:
    <div><%=SaveFiles%></div>
    when the script executes it doesn't do anything when it reads the function definition. But when it gets to the div it executes the function and puts the result right there. does this...
    See more | Go to post

    Leave a comment:


  • jhardman
    started a topic explicitly set port 1433 for linked servers

    explicitly set port 1433 for linked servers

    the short version: I need to explicitly set the port for my linked server config to use only port 1433, and can't figure out how to do that. Has anyone done this before?

    the long version: I have two data servers on different subnets (xx.ab.cd.59 and xx.ef.gh.59)hos ted by a third party and several client machines on each subnet that need to connect to both data servers. I set these up months ago and they all worked. last month I...
    See more | Go to post

  • jhardman
    replied to If then statement if record exists
    Glad you got it working. Let me make two comments on your code.
    1- whenever you have a long section of html to write, it might make sense to end the asp code and restart it after you are done like this:
    Code:
    if oRs.eof then %>
    <Td align="center"><input type="text">
    <%
    End if
    Notice that I don't have to worry about escaping my quote marks. I find this is easier than using "response.write "...
    See more | Go to post

    Leave a comment:


  • jhardman
    replied to If then statement if record exists
    The if statement you are looking for is
    Code:
    if oRs.eof
    this returns true if there are no records, or if you have looped through all the records and reached the end. Try putting your if statement right before the do loop.

    Jared
    See more | Go to post

    Leave a comment:


  • that is weird. I've seen some crazy stuff where it looks like there is an old value cached somewhere, but in this case if you never used this file in the past then I don't know why you would get it now.

    1- are you absolutely certain the web server is noticing that you are editing the script? Can you see other edits come through?

    2- Do you have high-level access to that machine? Can you restart IIS?

    ...
    See more | Go to post

    Leave a comment:


  • 1- asp is not the same as aspx (asp.net). That is why we have two different forums for these. In the future, please post aspx questions in the asp.net forum

    2- both asp and asp.net use code that runs on the server and is never sent to the end user. So there is no way to copy a page without getting access to the files the server uses to generate that page. The best you could do is try to reverse-engineer it. Sorry.

    ...
    See more | Go to post

    Leave a comment:


  • You can't do it without submitting a form or clicking a link to another page. All server-side code is removed when the page is sent to the browser. The browser can run client-side code (js or ajax), but not server-side code (asp). The only way to get an asp function to run is to ask the server to give you a new page - hence submitting a form or clicking a link that sends you to a new page will work.

    Jared
    See more | Go to post

    Leave a comment:


  • jhardman
    replied to How to show score into Html page
    There are several ways you could do this. Let me ask, how are you adding the new entry to the db currently? The way that makes the most sense to me is to run a second query to the db immediately after you add the record. Look for code in the asp page that 1- creates a connection to the db 2- opens the connection 3- sends an insert command. Could you show me the basic form or structure of that part of the code? Take out any passwords and security...
    See more | Go to post

    Leave a comment:


  • yeah, there is no easy way to do this. MySQL has a handy "export" feature that converts the entire contents of the table into a plain text sql insert statement(s). For MSSQL the only solution I have ever found is to take a backup, then create a blank db in the second location with the same name, then restore the backup (with replace) then re-assign all the users.

    Jared
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...