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 wOOdy-Soft 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: *

  • Users: cawthor
  • Content: Threads
  • Order by date
  1. cawthor

    Noob alert - Programatically build table on page load

    I'm trying to add rows to a table on page load instead of building the whole table in the designer. However, the following code produces no results. No error, just nothing on the screen. I'm defining the table in the html as follows: <asp:Table id="Table1" BorderWidth="1" GridLines="Both"...
  2. cawthor

    Issue resetting ScrollTop to zero

    I've included some sample code below. If I scroll down a few items in a multi select box, then reset the ScrollTop to zero, the list resets to the first element correctly. However, if you then click the scroll down arrow, it will jump to the next value before the scrolltop reset. Eg. Scroll down...
  3. cawthor

    Anyone know of a scrollable sub-menu?

    Hi, I'm looking for a navigation menu that allows you to scroll the sub-menu values. Eg. You roll-over the main menu button, 'Products', and instead of displaying all 20 links, it displays 5 and allows the user to scroll up and down through the list (with maybe an up arrow at the top and a down...
  4. cawthor

    Custom datediff function giving weird results for Oct / Nov!

    Hi, I was looking on the web for a function that would calculate the number of week days between 2 dates. I found the following function which I thought was working ok. However, it produces strange results for dates in the last week of October, start of November! I set up a test page to run...
  5. cawthor

    onChange and onBlur cannot see the event.keyCode

    I am trying to execute a function when a text box focus is lost via the TAB key. I added a condition to the 'onBlur' event of the text box to check the keycode, but it always returns 0. Same for 'onChange'. Is there a way for these events to recognise that the TAB key was pressed?
  6. cawthor

    Don't submit form when ENTER key pressed

    I have a form with various text boxes. When a user presses the ENTER key whilst in one of the text boxes, the form is submitted. Can I disable this and just move the tabindex to the next text box? I don't want the form to submit until the user clicks on the 'Submit' button. Thanks.
  7. cawthor

    onblur and radio buttons

    I have a text box that I immediately validate using an OnBlur function. However, if the user clicks on a radio button after they have entered their text (which triggers the onBlur event), the radio button doesn't get selected. You have to then click the radio button a second time to select it...
  8. cawthor

    Iframe on top of a Flash Movie

    I have a flash movie embedded in my page. I've added an iframe over a portion of this movie (it acts as a button to launch a larger view of the flash movie). This works fine, but if you click on the flash movie (not the iframe area), it brings the movie to the foreground and covers up the...
  9. cawthor

    Does IE cache cookie values??

    Hi, I have a cookie set in my page. When the user updates a name field on the form, the cookie is updated. I know this is working correctly as I can open the cookie file on disk and see the value has been updated. However, the page always displays the original cookie value. I can even delete the...
  10. cawthor

    IE version for using imagemaps?

    Is there an IE pre-req for using Imagemaps? I have the following code on my page: <img src="images/find_lines_1.gif" alt="Find" border="0" usemap="#find_lines_1_Map"> <map name="find_lines_1_Map"> <area shape="rect" alt="" coords="5,103,22,120"...
  11. cawthor

    @@IDENTITY returning NULL if an open connection already exists.

    I don't know if this should be in the ASP forum or here, but here goes. I have a development and production instance of my ASP code and this works fine on dev (of course!). Both servers have the same setup (using SQL Server 2000). In my code, I am inserting a record into a table and retrieving...
  12. cawthor

    @@IDENTITY returning NULL if an open connection already exists.

    I don't know if this should be in the SQL forum or here, but here goes. I have a development and production instance of my code and this works fine on dev (of course!). Both servers have the same setup (using SQL Server 2000). In my code, I am inserting a record into a table and retrieving the...
  13. cawthor

    Passing variable from ASP page to populate list box.

    I don't understand what is wrong!! I'm simply trying to pass a value from an ASP page. Running my ASP code produces the following string: &desc0=NO LONGER VALID&EOF=true& If I generate this string by simply typing: <% response.write "&desc0=NO LONGER VALID&EOF=true&" %> ...then my list box...
  14. cawthor

    err.number within a loop

    I have a loop that inserts a record on each iteration. I am checking the err.number value after each insert and writing any errors to a log file. Code as follows: do while.. strSQL3 = "INSERT INTO....." adoMaster.Execute strSQL3 If err.number Then response.write...
  15. cawthor

    Securing connection string

    Hi, My connection string within my code contains the database username and password. I was wondering the best way to hide this information. I am working on an Intrenet site which ises Windows Authentication in IIS, so the site is not operating via the Internet Guest Account. Therefore, any user...
  16. cawthor

    Can I lock a selection in a multi select box?

    I have a multi select box. Is there a way that I can 'lock' one item as permanantly selected (so the user can not de-select it)?
  17. cawthor

    Validating record does not exist before inserting

    Hi, I have a web form that once submitted, writes a record to a table. Is there a way that I can check if the record already exists before my form submits? Eg. ideally, user fills out form, clicks on submit and either gets an error that the record exists, or the record is inserted and a 'thank...
  18. cawthor

    Using 'LIKE' with date field.

    Is there anyway to use the LIKE function on a date field? I have a web form where the user can input a date to query (or partial date). I was hoping the user could enter something like '%/3/2005' which would return all matching records. However, LIKE does not work on a text field. I have got it...
  19. cawthor

    using replace function with NULL strings

    I've got an SQL Insert statement that inserts about 100 fields (1 record) into a table. Most of these fields are text, so it's possible they may contain single quotes. These quotes need to be escaped in the insert statement so I was hoping to just use the replace function...eg: INSERT INTO Tab1...
  20. cawthor

    'Save as' dialog box for text files

    I am generating a text file via ASP. I want to display a 'Save As' dialog box to the user instead of just opening the text file within the browser. I have found a few examples on the web such as: Response.AppendHeader("content-disposition", "attachment; filename=test.txt") Response.ContentType...

Part and Inventory Search

Back
Top