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"...
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...
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...
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...
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?
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.
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...
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...
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...
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"...
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...
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...
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...
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.