Default Value In Textbox Not Working Like Expected
I am building an application for inserting and updating one field in a database. The database is in SQL Server and I am using Classic ASP.
I have a dropdown listbox that is populated with names, when a name is selected it
automatically submits the form and then replaces the dropdown listbox with the name of the resident selected. Now I need to take a field and split it into 2 textboxes. This is where my problems begin. The field is named ProblemO and looks something like this, Code:
I'm querying 2 tables in 2 seperate recordsets and comparing set 2 to set 1 using ASP. If booking exists in set 2 that matches item in set 1 then I need to display the length item is booked for. I'm using a table with many cells and shading background to identify booked areas.
I've written a script that allows users to choose their own colors for the style sheet, but when I try to include the style sheet (style.inc), I get this error:
Microsoft VBScript compilation error '800a03f6'
Expected 'End'
/theroguehacker/style.inc, line 106
Line 106 is the end of the file... I've messed with it at least two hundred times... Please take a look and see if I'm doing it wrong. (I'm definately a beginner)
Also, I'm going to post the script that processes all the input. I'd like to know if there's an easier way to do it. Code:
i have a dropdown box with some values, i take that value and query the DB, i need to take that value and query across more than one column i set the up but am i have some problems i'm getting an error "Expected end of statement, Code:
I've walked myself through a Beginning ASP book and taken a class on SQL2000. I'm able to access my database on my server through a DataConn_Open.asp page. The code below is giving me back the error:
I keep on getting this error. I had an sql statement before and it works. I changed it and i get this error so i know it's within the sql statement. Does anybody know what is wrong?Code:
<% dim mysql set objconn = server.createobject("ADODB.connection") objconn.connectionstring = "dsn=prospect" objconn.open set objrs = server.createobject("ADODB.recordset") 'mysql = "select * from Prospect where asm = '" & Username & "' order by Prospects_Name ASC " mysql = "Select * from Prospect WHERE Status_Report.Prospect_Number = Prospect.Prospect_Number " objrs.open mysql, objconn %>
I have a link on our ebay auctions that goes to a request form where people can request to have samples of our product sent to them.
I'm trying to use a simple querystring to hold the model number of the product so the actual request form can put the value in a hidden field and get submitted into my database with the rest of the informaiton. Code:
I need the end statement to this sql query, but I am doing something wrong, is there site where they show you the different forms of ending sql statments in ASP? Code:
during the creation of an HTML page using asp variable I have this problem:
Microsoft VBScript compilation (0x800A0401) Expected end of statement /asp/pages/connect1_1.asp, line 27, column 35 strtable = strtable & "<tr valign="top">" &
I needed to create a quick and simple "lock-in" system where many people in a computer lab can pick an answer (A, B, C, etc.) and then the results be displayed to me. I went looking for a free ASP poll script that would work for my needs. I found one called Poll Manager on AspPlanet.net (http://www.aspplanet.net/viewdl.asp?itemid=6). It gives me the ability to see the results with a bar graph of sorts and easily reset the data. I have everything set-up and working, however, I modified the results page so that it reloads using javascript every 5 seconds. After letting the page reload several times, I get the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
I can reload the page and often the error goes away, but sometimes it takes a few reloads. What could be causing this? The code can be found at aspplanet.net but I can also copy and paste it here if needed. Any ideas?
Response.ContentType = "application/vnd.ms-excel";after downloading the same when i import it back to my system using Microsoft Excel driver, i got an error.
External table is not in the expected format. Do anyone know how to solve it?
When the ASP statement end with a _ character, then the next line cannot have comment ' character. Is that correct? Since I encountered the following error:
Microsoft VBScript compilation (0x800A0400) Expected statement
I'm using a binary stream to send down a file from the web server. I've been having trouble with IE and getting it to recognize my file. I've added the filename as a paramater(?filename=file.jpgw) to handle IE's mime type mangling, but I'm still having trouble with IE's default Save As Type being HTML. When we send down a jpgw (geo-jpeg) file IE wants to save it as an HTML file. I've got the correct filename showing in the Filename box, and if I choose the All Files option from the Save As Type drop down then the file is saved with the correct extension. I'd like to have the All Files option choosen by default. I know it's just a couple of clicks but we have some noivce users that can't seem to get that
I wrote an application that generates reports.It then presents a page where I click a button [javascript:print()] to open the print page. However, I have a fixed printer and would like to know how to print to the default printer without me clicking anything. So the page will just load up and print. Or when I click a button. I just don't want the select printer screen to pop up. Much similar to clicking the print button on top of the address bar in Internet Explorer.
my new site uses default.asp, instead of using index.asp. this is how my old site was done. now i get error 500. is this because it is trying to find index.asp or because my database isn;t workjing properly? i'm tired and being stupid i think. it's reall probably the database, but i just want to make sure in my sleep deprived state.
I want to make it so that when the user is looking at a rendered ASP page and they hit the ENTER key, one of the buttons on the form gets "clicked". In other words I want for the user to not have to click on the button, and just hit ENTER instead. How do I specify the button?
This is the code for a combo box, and I would like to make certain value the default value, so that appears unless users select somthing else.
call rs.Open("SELECT * FROM Trim.dbo.luDecisionMaker ORDER BY DecisionMakerName" _ , myCon)
do while not rs.EOF Response.Write("<OPTION value=" & rs("DecisionMakerID")) if rs("DecisionMakerID") = nDecisionMaker then Response.Write(" selected") end if Response.Write(">" & _ rs("DecisionMakerName") & "</OPTION>" & Chr(10)) rs.MoveNext loop
rs.Close
It comes from a table and has PropertyDetailsID(1,2,3,4) and PropertyDetailsname(Fee, 5,10,Other) and for example "Fee" needs to be the dafault value.
If a new user is added to the database through a webform, and they would usually have immediate access to member only services, is there a way to make them nonactive in a MS access db until an admin activates them?
I am wanting to compress/zip a file up on the server and email it. Is there a default component that should be installed on the server that will compress/zip files? If not is there FREE ones that anyone would suggest?