I am trying to make the options for a drop down menu change for the state when a country is selected.
I am trying to use a script like the following that I modified, but getting undefined variable 'selected' error. How do I define a variable with two components (variable(component, component))? Code:
i am trying to update a field in an access database that is of type 'Yes/No'. this is because i am using a checkbox in my ASP form to represent this field, i get Type mismatch error if i change the field type in access to text and i get this error if i keep both as Checkboxes: Code:
I tried the search function but I can't really identify what this kind of issue would be called (Searching store variable comes back with hundreds/thousands of hits).
I am doing an update form which opens 2 SQL connections (its easier for me to do this cause I mess up joins to a significant degree, that and performance is not a big worry, eitherway).
<notes> Both connections are open, one is called rs, the other is called articlers. I have 2 databases (named database1, and database2), and I have two different SQL strings (SQL and articleSQL, the problem comes in the 2nd string and in storing a variable. Code:
I am writing ASP page, and I have create many session variable. Is there exist a function or method to print out ( output ) all the session variable in one page.
Because I need to check the value of all session variable and I cannot scan all the asp page. So I want a function to print out all the session variable that I have created.
Is it possible to change a variable name? I need to store some information to be displayed to the users in a variable but I need to change the name of this variable. So what I need to do is read some info from the db, create a recordset and then read the first row of the recordset and store the result in a variable named Answer_1, read the next line and store the result in the variable Answer_2, is it possible?
Do you have to declare a session in the global asa or can u just us them where ever I'm passing information from my cookie into a session object then looping through the session content and I was curoious do I need to declare this session in a global asa ?
If so what is the basic outline of what the declartion will look like.
I want to put session variable on every page, so that I can create security for pages. Below is my code, Iam not getting idea, that how I put session varaible on every page of my website, to check that either user is logged in or not. Code:
I have a recordset that I loop through all of the data within a table, within the same loop, I am trying to add another loops that pulls information from the first recordset to base the second recordset off of: Code:
The problem i have in my system you can seacrh clients and then display their details. what i wanna do is find the client i want and then have a button called e.g. generate and then the asp pops up a word or rtf document with there details sloted in to a preformatted document.
Now i know i could do this by creating the doc line by line with asp on the file but is there a faster way of just inserting the asp values into placeholders in the word or rtf file which has already been setup?
I'm having a problem controlling the output from an access db and the css two column layout. It goes like this.Left side has a connection string and outputs 3 columns of db data to the leftside of the page. There is also a conection string on the right side of the page. It outputs that db data AFTER the right side processes that data. So the page is staggered, left to right instead of displaying the results across from each other.
I have an ASP program. It outputs HTML with some XML data islands in it. When I run the program, the browser sees the HTML and doesn't work the way I want it to. however, if I view source on the output page, save the source as an XML file, then open the saved file, it works properly.
How do I get the browser to treat the output from an ASP program as XML instead of HTML?
This is really puzzling me; I am developing a site for a client and have uploaded it to a remote server with ASP enabled; I and my friends do not have a problem diplaying the output HTML from my ASP statements however, my client is unable to see it. He says he can see all the other page (CSS layout) but is unable to view the content (output HTML) from my ASP statement. Now I am clever enough to know that ASP is server side, so I cannot understand why he can't see it- and he has tried this with two of his computers. The only possible explanation that I can come up with is that he may have Javascript disabled in his browser as my pages contain a small amount of Javascript.
if guy can help how to output if my customer make reservation....enter everything ..etc enter first name, last name. then after click make reservation button it will come out his/her name on the page for his/her referrence ...then it will clear once another customer enter it.
This might sound stupid to you guys, ok i have this:
------------------------------------------------------------ perc = (total*100)/limit
response.write (" You are using ") response.write perc response.write (" % Of your 1GB")
------------------------------------------------------------- but on the output i just need the first two digits, but i get this You are using 21.8057899 % Of your 1GB
Please guide me. How can I output the records from my recordset in columns in a table? That is, instead of just one record per row in a table, how can I have multiple records per row?
I haven't being doing that much in ASP, but I have to create this: It has to read out data from some DB to excel.
The following (corrected) code works if just it outputs as html, once the Response.ContentType is excel. then it offers to open/save the file, and stops - file not found - what do I do wrong? Code: