Heading Code
Is there anything technically wrong with the way I have the below code
arranged? It works, but is not how I am used to seeing page headings layed
out.
<%@LANGUAGE="VBSCRIPT"%>
<% response.buffer = true %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!--#include file="Connections/dbconnect.asp" -->
<%
sname = UCASE(Request.ServerVariables("SERVER_NAME"))
If InStr(sname,"NEWRELEASES") <> 0 then
response.redirect "http://www.mydomain.com/newproduct/"
ElseIf InStr(sname,"SPECIALS") <> 0 then
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Heading Display Data
I have a page that shows the skillsets our analysts are on here. We have 10 skills, each one a different recordset to pull their data, so the page takes a while to load (7 seconds). What I was wondering if its possible to do is just show the heading (the name of each skillset), but when clicked on, a response.write of somesort would show the cell underneath and then pull the data. Hopefully it makes sense what I am saying, if not i'll try to post something up.
View Replies !
View Related
ASP Code - Anti Spam Verification Code
I'm looking for sample code that will require a use to enter a code from a scued image format. I'm sure you've seen them before where the image is barely readable by a human and the user has to enter the code correctly to submit the form. I'm looking for ASP code and NOT ASP.NET code as I am supporting a legacy site.
View Replies !
View Related
ASP Code
Is there any way that I can store my ASP code in an Access DB and have it display that way? Ideally, I would like to make a page with a text area that I can write and edit code in, and then when I submit it, I would like to view the page that the code creates. The code in the DB would include code that selects from and updates the DB. I would like to do this because I can't work remotely now.
View Replies !
View Related
SQ L Code
What is wrong with my code? This is the error. Microsoft OLE DB Provider for ODBC Drivers (0x80040E14) [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'CLASSDATE >= 6/23/2004 ORDERBY CLASSDATE'. This is the code. Code: strSQL = "Select * FROM WellClass WHERE CLASSDATE >= " & DATE & " ORDERBY CLASSDATE"
View Replies !
View Related
XML Code
I am trying to follow the W3Schools tutorial on the XMLDOM object, and it works fine in a regular HTML document inside <script> tags (vbscript), but I am trying to do it in the ASP tags (<% %>) and it does not work. The error says: Code: Microsoft VBScript runtime (0x800A01A8) Object required: '[object]'
View Replies !
View Related
Asp Code
I am trying to do something with it and I can figure out what to do!I have created a database that lets realtors track clients, potential clients, and offers made. Here is a link to the database:(URL address blocked: See forum rules) What I am trying to do is create a form that lets a user enter his first name, last name, email, and offer amount into textboxes. When they click send it adds their information to the Potential Buyer table (the primary key is an auto generated number.) The offer table is basically an associative table, containing the following information: buyer$buyerid, client$clientid, and amount. I would like the amount to be added to this table, and I would like it to also add the newly created buyerid. My problem is that well, I have no idea how to do this, as the buyerid is created only seconds before I need to post it in the offer table. Could anyone help me out with this? I'd really appreciate it.
View Replies !
View Related
PHP Tp ASP Code
Im a novice with ASP and no idea of PHP, can Any one help me convert this to ASP... $rss = $_GET['rss']; if ($rss && $rss != ""){ if ((strpos($rss, "http://") === 0) || (strpos($rss, "https://") === 0)){ readfile($rss); } }
View Replies !
View Related
ASP Nav Code
Here's the current code that I'm using for navigation through some pages. MY question is, I want the item "System-Add Ons" to still stay bolded if I'm on a page that's in a subset of "Products" Is this possible? For example, if a user gets to the page "Monitors," (monitors.asp) I want System-Add Ons to stay bolded.... How can I set up subsets of the "Products" page? Do I have to make a directory and do a test if the page is in the directory "Products" and is affiliated with "Products?" Code:
View Replies !
View Related
Better Code
I Wanna to know that which of below codes related to ADO within ASP (VBscript) is better? CODE ONE :: rsEduCalender.CursorLocation=3 With rsEduCalender if .State=1 then .Close .Open SQLstr,cn,3,1 End With '''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''' CODE TWO:: With rsEduCalender if .State=1 then .Close .CursorLocation=3 .Open SQLstr,cn,3,1 End With
View Replies !
View Related
My Code
i created ASP page for Online TEST it Consist three pages First Page is Selection of Topic and Number of Questions from List Box. Second page is shows the Questions as per the Selection in previous page Datas from the Database. Third Page is Result Page. But My problem is in Second Page, because all the question are created dynamicaly so that how can i get the User answer I get the question id and correct answer for all the questions. but i need to get the user answer for Result.I attached my code for the second page.
View Replies !
View Related
ASP Code
Is there a program or website that will validate my asp pages?Kind of like how html pages can be validated on http://www2.imagiware.com/RxHTML/ and on http://netmechanic.com
View Replies !
View Related
Zip Code
this is what i am doing for zip codes i want user to enter zip codes like this 92274 92274-0965 so if the user enters zip code like this 92274 then its right but if he enters zip codes like this 922740965 then change it to 92274-0965 this is what i have done so far so i have got the values of first 5 i need to include a -and then the rest of the numbers any idea how to make this work
View Replies !
View Related
Code Need
I need some code to test whether my connection is open in an asp page. Something like this: <% IF NOT connection is open THEN Connection string code here END IF %> I know how to write the connection string, it's the first part of testing whether it's closed or not that I don't know.
View Replies !
View Related
Code
I have two tables, raceresultsview and jockeyselections. In jockeyselections, I have jockey names and stableid, for example Pat Day, stableid 1000.In raceresultsview, I have jockey names, and placement. I want to do something like this: select * from raceresultsview where jockey in (select jockey from jockeyselections). This works FINE, but I need to figure out how to grab the stableid, too.Each time there is a match, I want to insert the stableid and placement into the table named winnings.
View Replies !
View Related
For Next Code
Heres my for next loop. Basically it is pulling files from a folder. Now I want it so that if it reaches the end of all of the files, that it starts over at the beginning. Any ideas? Code:
View Replies !
View Related
ASP Code
This what I am doing: Moderator (from admin) will see a list of cities to approve/decline. If approved, then the city will show up in the search and alert city list boxes. If declined, then the moderator will be asked to pick an approved alternate city and all postings containing the user-inputted city name will be changed to the alternate approved city name. The moderator will be notified via email when not listed is selected. Any one have any ideas on how to build this in ASP? I'm kinda new to this ASP programming thing.
View Replies !
View Related
Zip Code
I'm looking for a script that will auto complete the state field when someone enters their zipcode. I'm currently using http://javascript.internet.com/forms/zip-to-state.html but its kind of out dated and often returns null. Does anyone know of a more up-to-date version or one that is updated regularly? It doesn't have to be free.
View Replies !
View Related
About Code
Can anybody tell me about this: conn.ConnectionString = "SELECT [Customernr], [Customername], [OrderID], [Orderdate], [Itemname], [Ordersum], [Orderdiscount], [Orderprice], [Orderamount] " + " " + "WHERE Customernr = "' + <%txtCustnr.Text %+ '" FROM [CustomerOrderHistory] ORDER BY [Orderdate]"; So what I try to obtain is getting a value from a textbox: txtCustnr.The code is C# in an ASP 2.0 application
View Replies !
View Related
ASP Code Or IIS 5.0 Set Up ?
This was originally posted to Macromedia forum but maybe someone here can assist....... I am a total Newbie to ASP and forums....trying to begin dynamic site building....purchased almost all Sitepoint books trying to determine if ASP, PHP or which is best/easier...... Simple ASP file failing.......also SMTP e-mail from form Using Training from the source book - Dreamweaver MX dynamic sites.......but software is actually Studio MX 2004, running on Windows 2000 platform using local Microsoft IIS as testing server.... Code:
View Replies !
View Related
Using Code Containing
I learned basic ASP at a computer trade school where it involved sql. After buying webspace from a host, I later learn they do not support sql, only ms access. I've been using code that deals with sql, but at the same time my database has been done in access. my host has on several occasions been called to fix server side problems, but now it seems only my code is at fault. it tells me the exact line with the problem, but i can find nothing wrong with it, mind you im not very experienced. im hoping that perhaps you will be able to set me straight with this problem. below is the line of code that is erroneous. Response.Write("<a href=http://fireXdrake.bizland.com/asp/price.asp" & "?id=" & rs(0) & ">" & rs(1) & "</a><br />")..
View Replies !
View Related
ASP Code
From where I can get free ASP script like ASPIN.com or Hotscripts.com uses to show product and programs with there ratings and searching options. I need same script as ASPIN.com or Hotscripts.com use to desplay product information.
View Replies !
View Related
ASP Code Vs COM Components
I've just been reviewing a COM component (VB6) that I wrote a while ago to record when and where 404 errors occur; each error is logged in a DB along with supporting information. Looking at it now, I'm wondering why I chose a COM component rather than just an ASP page. There is not that much code involved, so I could easily have expanded the ASP page that calls the DLL to do the whole job.... COM Component: Generally perform faster than an ASP page, but there is an overhead associated with creating a new object in the calling ASP page, so more suited to more intense apps that dont require user-interaction. Also keeps code private of course. ASP: Keeping you code in an ASP page is often more efficient for smaller jobs, where the cost of creating a COM object outweighs the potential performance gain. Also prefered for tasks that require frequent user interaction. Code remains public (to those who have access to server). This is what prompted my question: At what point, does it become worthwhile to go for a COM component as opposed to an ASP page? Is there that much difference in it? Are perceptions of the issues fairly accurate? I've updated the DLL in question - it was a bit of a ball ache: modify code & compile, reset IIS, then copy DLL to server and re-register. I know my DLL in this example doesnt do much, and I'm certain that modifying and copying ASP pages would be simple & efficient, but at what point does it pay to use a DLL?
View Replies !
View Related
ASP Search Code
I want the ASP code to pull data from the database. If i enter one of the field in the form and then click on Search button, the data for the other fields should automatically pop up.
View Replies !
View Related
Color Code
I have got a peculiar requirement. I want to distinquish between the color codes. I have got two text fields and i will enter the color codes there. The first text field will have background color The second will have text color. I want to validate if background color is dark then only light colors should be entered in text. and vice versa.
View Replies !
View Related
Function Code In ASP
I have a code In asp, but i don't know this function.below is code: 1.if instr(strq,"http://localhost/ab") > 0 then ........... else ........... end if 2.fid=replace(fid,"pdafid_","") 1.What function the code "instr"? 2.What function the code "replace"?
View Replies !
View Related
Code Encryption
What will be the best way to encrypt/decrypt my code. I'm currently using a include file in my code, and want to encrypt this code page. Will it be best to write a dll to do the encrpytion/decription and call this every time I want to access the file or not.
View Replies !
View Related
VBA Code Inside ASP
I have a front end with all the code and a backend with some tables. Want to convert this into website database. Most probably convert the frontend into ASP. Is this the only way? Can one use the VBA code inside ASP with translating the VBA into ASP?
View Replies !
View Related
Redirection ASP Code
the code below is from a results page. When clicking onto it, you are diverted to the description.asp page. Can it be changed so that any result which listed under a "Basic" AccessLEvel is redirected to the basic-description.asp? <a href="description.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "SupplierName=" & rsSearchResults.Fields.Item("SupplierName").Value %>">More Details</a> In basic terms, "If AccessLevel is "Basic" then redirect to basic-description.asp. Keeping in mind that it needs to pass all the values that the code above passes. I have also included some code for a previouse project. <%If trim(rsSearchResults("AccessLevel")) <> "Basic" Then%> <a href="description.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "SupplierName=" & rsSearchResults("SupplierName") %>">More Details</a> <% end if %>
View Replies !
View Related
Rerouting Code
I have just picked up a little hobble to fix some code for an e-commerce site (older). It uses Aliant as the Secure Transaction server (if familiar with it you will just shiver). Problem is the secure server picks up the URL where you came from, in my case this is a product screen - a single product - not the list of products. Aliant's code reads this URL, and if you <continue shopping> you end up back on the single product page, as this is where you left. This is confusing to a customer. if they click <back> from here - they end up on the purchase shopping cart screen again, and it increases the order as all info was passed once more. It basically forms a confusing loop.
View Replies !
View Related
Submit Via ASP Code
I have an intermediate page that takes a querystring, does a query on a database and writes out hidden values for each returned record. This design layout is necessary for a variety of reasons and not subject to change. I need the form to never be seen, essentially it needs to write out the hidden values and immediately post to another form when it's done. I have everything accomplished but the posting. Is there a technique to post the form via code as opposed to a submit button or something of that nature?
View Replies !
View Related
Running Asp Code
I am very new to asp programing, so this may seem a silly question but here goes. I am creating a page that will generate random lotter numbers. I have created the actual code to generate the numbers and have added the code to the top of the page. the problem is the code runs when the page loads and I want it to run only on the click of a button. I read various starter tutorials and none seem to mention how to asign code to the click of a button.
View Replies !
View Related
Code Techicatly
My website is nearly compleate. Final testing is now underway before uploading. One of my testers has spotted a problem, though. My ASP search code works, but is case sensative. How do I remove this, so that if I type in "Dog" and "DOG" I get the same output? It is a small issue, but an important one. The line that concerns this is below. <code> strSQL = "SELECT * FROM Locations WHERE LocationName LIKE '%" & Search & "%';"</code>
View Replies !
View Related
Connection Code
I found this code on a website for an ASP connection code to MySQL and it won't work. I know that MySQL works because on another part of my website I use a php connection code and it works, but my ASP won't. Here is my code: Code: connect_string = driver={mysql};database=pi;server=chadmc.com;uid=name;pwd=pass; set oConn = server.createObject("ADODB.connection") oConn.open connect_string And I changed "name" and "pass" with my real info. And here is the error I get... Microsoft OLE DB Provider for ODBC Drivers error '80004005' [TCX][MyODBC]Access denied for user: 'name@192.168.1.1' (Using password: YES) /forum/index.asp, line 19 It says 192.168.1.1 because I'm on the local network.
View Replies !
View Related
Scanning Code
I'm developing a filing system in asp..in this system, user has to scan letters into the system..before this i've coded in vb script..is there any scanning code in asp??
View Replies !
View Related
Analyze ASP Code
I'm having a problem with Com+ crashes on a virtual server environment, and the tech support is claiming that my ASP code is consuming too much memory.The problem is, there are 19 sites on this VPS, and they can't isolate where the problems are coming from. Is there some kind of tool I can run that can detect problems in my ASP code -- like objects left open -- because going through every page of 19 sites doesn't seem very practical.
View Replies !
View Related
How To Secure Code?
I have a site designed with ASP 3.0 code (HTML and vbscript) that I want to protect from being visible. I want this code to be non-visible and hack-proof. Is there a way to either encrypt or protect another way to ensure that my code is not stolen?
View Replies !
View Related
Random Code
I set up a random code for people registering with my site..... letters="1234567890abcdefghijklmnopqrstuvwxyz" for i=1 to 16 Randomize() rNum=Int(Rnd()*36)+1 code=code&mid(letters,rNum,1) next but for some reason it sometimes saves code as an empty string. When I register a fake name, ie zzz, it seems to work fine, but for some of my members is saves as an empty string.
View Replies !
View Related
|