I want to run a script that takes one value per field if the field value includes repeats. Is it possible to only select one field? I still want to include all the other fields in my script, I just don't want repeats. is this possible?
I'm building a statistics page and would like to ping a server and show the result in ASP. This shouldn't be a problem, but I'd like to be able to get the same information for 40 other servers all at the same time.
The only solution I can think of would be to put the list of serversinto an array and loop through it. But this approach would take seconds to process each server and therefore the entire page would take an age to load.
Is there any way ASP can ping all the server at the same time so that the results for all server could be seen in seconds? I've never done anything like this before so I have no idea where to start.
What I want to do is place a link on my page, and when someone clicks the link a popup appears, and the page they are currently on goes to the next page. e.g
page1.asp contains the link. When a user clicks the link, they are taken to page2.asp. But a popup also appears when the user clicked the link.
I have a few forms and find that people are intering all sorts of information into them that we dont want. Is there a way to stop people from entering things like ()*&^%$#@!+_=><"':; and so in into the forms.
A form example on the site is basic. Something like this.
I have written some code which should dynamically build a table which is then populated with questionas and possible answers. The format of the answers will vary ie they may be in the form of a radio button which will be rated from 1-5, checkbox or a selectbox.
The first problem I have is if I do not comment out <select></select> I get an error message saying the page can not be found. when I do take it out I get asp timeout. Code:
does anyone know what I have wrong with this select in my form?
<% sql = "SELECT * FROM [LTAB_CAProcessArea]" Set ProcessAreaRS = Server.CreateObject("ADODB.Recordset") ProcessAreaRS.Open sql, SessionCPRDBConnection, adOpenStatic, adLockOptimistic, adCmdText %>
<select name="processarea"> <% Do While Not ProcessAreaRS.EOF Resonse.Write("<option name='" & ProcessAreaRS("processareaID") & "'>") Response.Write(ProcessAreaRS("txtProcessArea")) Response.Write("</option>")
I don't know if this is in the right section. I hope it is.I have an HTML document that uses tables and stuff. I also have a FORM on there with some input boxes, Radio buttons and <select> options. I have a .asp VB file also that processes the actual form and writes the answered questions to a text file on the server (tab separated) My problem: The input boxes and radio buttons work fine. It writes to the text file on the sever end.
My problem is I am not too sure how to go making the answers from the <select> options to also write to the server. They way I have it set up right now, it jsut writes "NULL" on the text file.
I've recently come across using "Select Last" in an sql query. Does anyone have any info or views on using it? Until now I've relied on "Select Max" but Select Last would have distinct advantages when using random autonumbers. I'm also curious about why there is so little info on it - perhaps I'm looking in the wrong places?
I want to display an editable page extract from MS Access table. Now I want to show the value in Select list, extract from another table. Both tables are joinable with the foreign key.
In simplest, I want to extract and display the exact value from a table and show in Select list for edit.
I could not think of any way. I can bring up data and display in Select list but it would display the first value in the list only.
I have the following SQL SELECT statement below that doesn't like the TOP 50 parameter. When I remove it, all is good. When I put it back I get "Incorrect syntax near '50'". Code: SELECT TOP 50 SSN, LName, FName, License_Certificate, Character_Identifier, CertificateNo, " & _ "tblIndividualInfo.IndividualID, tblLicense.LicenseID FROM tblIndividualInfo " & _ "INNER JOIN (tblLicense INNER JOIN stblLicenseType ON tblLicense.LicenseTypeID = stblLicenseType.ID) ON " & _ tblIndividualInfo.IndividualID = tblLicense.IndividualID " & strWhere & " ORDER BY LName, FName
i attach a pic file to show wat i wanted to do a few data will be listed out i want the total from that particular few records only. not the whole records in database
I know this is an ASP forum but I've also gotten answers to my SQL problems here and I'd appreciate your help very much. I have these two tables in SQL. Both tables have the same two columns (Description and SiebelName). I want to some how write a script that will look for the descriptions that matches the ones in Table1 with the ones in Table2 and if there are any I would like to take the column in Table2, SName, and update the column in Table1, SiebelName, with that of Table2. Here's what I attempted to do but it's not working: -------------------------------- UPDATE tbl_MasterTEST SET tbl_MasterTEST.SiebelName = Siebel.SName WHERE (SELECT tbl_MasterTEST.ProdDesc, tbl_MasterTEST.SiebelName, Siebel.SDesc, Siebel.SName FROM tbl_MasterTEST, Siebel WHERE tbl_MasterTEST.ProdDesc = Siebel.SDesc)
strSQL = "SELECT * FROM mod48 WHERE N_GEN = 5" oRs.open strSQL,oConn,3
this table has alot of fields. I want it to automatically create alot of Text boxes for each field. But i also need the fields names. The only thing is that the field names in the table are well not very user friendly.
n_gen = General Numer pa_name = Client Name pa_surname = Client SurName
So i was wondering is there something i can do. Like a For each that will create alot of tect boxes for each field "with its value in it" and also make it write a description for the lable. Code:
I have a select statement that searches for certain records within a date range entered through a form. what i need to do on another page is count how many records they are and split them into each day within that date range. My original select query is: Code:
objRSError.Source = "SELECT TOP 100 PERCENT TrapPage, TrapLine, COUNT(TrapID) AS ErrorVol, TrapDescription, TrapASPDescription, TrapCategory FROM dbo.tblErrorTraps WHERE (TrapTime >= CONVERT(DATETIME, '" & objRSError__strFrom & "', 103)) AND (TrapTime <= CONVERT(DATETIME, '" & objRSError__strTo & "', 103))GROUP BY TrapPage, TrapLine, TrapDescription, TrapASPDescription, TrapCategory ORDER BY COUNT(TrapID) DESC"
I have an ASP application.Is it right that I am calling all SELECT's AND DML's through stored procedures and in the ASP page I just call the stored procedure.
I am NOT using COM,i.e.I am not calling the procedures through DLL's but directly through ASP as time does not permit me to add this layer.
tell me is this right and is this a common practise followed i.e.calling stored procedures directly thru ASP without COM.Also,what is the main benifit of using SP than dynamic queries as there are plenty of suggestions dont know what is the conclusion.
I have a database containing information in different fields one of those fields is a datetime field, i want to select everything from that table where the datetime field is a monday or tuesday etc.
if the user select the EmployeeID in drop down list, and then click the submit button, and it will look up database and show the Employee Name in the text box, this is easy.
But my case is: when the user select the employeeid in drop down list, it willfire the onchange event, and then look up database and show the employee name in the text box. There is no submit button.
I have a form that contains text fields, text areas and select/lists. The form.asp gets sent through: <form method="POST" action="Confirm.asp"> When I receive the completed form it contains submitted info from all of the text fields ie: CompanyName=Request.form("companyName"), but the responses in the 'select' fields are empty.
Do the select (drop down list) fields need to be coded differently than text fields in order for the response to get posted back to me?
how to place 3 Select Box's on screen? The first Select box will have the category heading. The second Select Box will have its sub_Categories. The third Select Box will have that Sub_Category's Products.
I have a Form page with many fields. The name field is a Select button which displays all the names available in a table. On selecting a name, the corresponding Desgination field should be displayed.
my sql statement outputs this, Am I missing smth ? Code:
SELECT sch_route FROM schedule WHERE sch_date =#8/27/2007# and sch_route ='Night_Owl_East_Orange' AND Trim(Training) = 'No' AND Shift_Interval IN (1,2) AND ((sch_time_start >= '05:12 AM' AND sch_time_end <= '06:45 AM') OR (sch_time_start < '05:12 AM' AND sch_time_end BETWEEN ('05:12 AM' AND '06:45 AM')) OR (sch_time_end > '06:45 AM' AND sch_time_start BETWEEN ('05:12 AM' AND '06:45 AM')) OR (sch_time_start BETWEEN ('05:12 AM' AND '06:45 AM') AND sch_time_end BETWEEN ('05:12 AM' AND '06:45 AM'))) The error
Code: Error Type: Microsoft JET Database Engine (0x80040E14) Between operator without And in query expression 'sch_date =#8/27/2007# and sch_route ='Night_Owl_East_Orange' AND Trim(Training) = 'No' AND Shift_Interval IN (1,2) AND ((sch_time_start >= '05:12 AM' AND sch_time_end <= '06:45 AM') OR (sch_time_start < '05:12 AM' AND sch_time_end BETWEEN ('05:12 AM' AND '. /den/sch_drivers.asp, line 165
I would like to select from drop down menu and depending on the selection display 1-3 radio buttons next to the selection box. I have tried some different code and nothing is working. What is the best way to do this?
I want to retrieve the student_id that I just added into table student_db.To avoid retrieve the wrong student_id, I put the condition "where" equal to current user session. Im not sure how to write the query...
sql = "Select top 1 student_id from student_db WHERE input_by = "'" & (session.(sloginid)) &"'" ORDER BY student_id DESC"
plus, do I need to put conn.execute sql at the bottom?
I am trying to display a feild from the table. But there is a Type Mismatch error that I am getting. Can anyone please take a look at my code to see what could be wrong.
The error that i am getting is: Microsoft VBScript runtime error '800a000d'
Type mismatch
/jobapplicationnew.asp, line 1285 Line 1285 is highlighted.