Tips On Writing Clean

My site keeps going down and I don't know why. I've been looking for tips on cleaning up my ASP code but couldn't find any. Do any of you guys/girls have any tips on cleaning the code? What to do and what not to do?

View Replies


ADVERTISEMENT

Programming Tips

guide me to start asp programming and shortest tips.

View Replies View Related

Hover Pop Up - Tool Tips

I am trying to create a hover pop up on a mouseover on a hyperlink. What I want to do is allow the user to hover over the hyperlink to see a description of the item. This hover pop up will pull the information from a field in the database that is associated with the hyperlink.

An excellent example of what I'm talking about is in this very forum. When a user mouses over a topic, a hover pop up box comes up with the description of the topic. Does anyone know how this is done, or of a tutorial, or what key words I could look up in google?

View Replies View Related

Shopping Cart Tips

i have to design a shopping cart for a site selling multiple products. How shud i begin?
What are the security concerns and tips and other stuff which i shud know? Is javascript use advisable?

View Replies View Related

Bar Code Implementation Tips And Guidance

I have an intranet site that controls equipments flow for three companies.
Recently one of the key users of one company asked me if the manual input they use to track the equipments and use the functions of the system could be replaced for a bar code scan...

So the basic idea is to add an icon beside the manual input that locate the equipment, as an option to use bar code scan pistol instead of typing.

There is some example of this kind of implementation, if its even possible?
Could you show me the way, like choosing the right bar code standard, how to control scan`s API from asp, etc?

View Replies View Related

Clean Up URL

I would like to clean up my url's with a program like mod_rewrite in PHP. Is there anything out there that doesn't have to be installed to the server to do this job?

View Replies View Related

Clean ASP Page

I have always been in a habit of putting the process page separate from the original data input page. For Example my login.asp page will have the userid and password fields and then login_proc.asp page will process this information resulting in login/error message.

These days i am working with a designer company to upgrade our company web site and they are forcing me to put information and process information, 2 steps to be on the same page. The content will be conditional.

Now my question is, out of these 2 which is better way. The 2nd one is ok if the input page is really simple and same way processing of this information is simple too. But what if the input page is already receiving some parameters from other pages, and due to this, input information is already getting displayed conditionally.

View Replies View Related

Clean Input

Is there any way to clean the user input before saving to the database.I tried to use..

Function StripNonNum(strInput)
Dim regEx
Set regEx = New RegExp
regEx.Pattern ="^[w-.]{1,}@([da-zA-Z-]{1,}.){1,}[da-zA-Z-]{2,3}$"
regEx.IgnoreCase = True
regEx.Global = True
StripNonNum = regEx.Replace(strInput, "")
End Function

But It doesn't work when user cut&paste the information to screen.For eg.Cut&Paste from a CV which contains Bullet points is there any way to remove these bullet Points before data saving..

View Replies View Related

Clean Up The Script

i am trying to clean up the messy .asp script that came with some new e-commerce software (Everest), as it gives far too much html. Take a look here.

I am going to take the java script out and reference it like this:

<script src="/superstore/productlist.js"></script>
<script src="/superstore/buy.js"></script>
(nicked from Tesco's website.. Hopefully it will work)

Can anyone suject how I get rid of all that messy creation of variables or Message strings?

WARNING! I am approaching this from a HTML point of view. Can do html in notepad and am working from the generated html files backwords to find out what the ASP files are, so please explain it like you are talking to a four year old.

View Replies View Related

Creating Clean URLs

I need to convert the Query Strings into Clean URLs, Found some articles on
PHP and Apache server.. How do we it them with ASP ??

View Replies View Related

Clean Word HTML

I have a 'textarea' javascript component which allows users to edit text in an HTML form's text area with some WYSIWYG features (such as emboldening, insertion of lists etc). However, this doesn't deal very well at all with text copied and pasted from Word.

Is there a way (a VBScript function maybe) which can strip out Word HTML upon submitting the form, or alternatively a good free text-area replacement tool with this built-in?

View Replies View Related

Tools To Clean Up Asp Code

i was wondering if there are any tools or programs out there that
can clean up your asp code like realign and make it more readable and
if there is can i have some recognitions please.

View Replies View Related

Best Timing For Clean The Session Variables

I usually clean the session when the result page is presented to the user.
At this time, say an email confirmation was sent to the user and a pdf file
they can becdownloaded from the result page.

But if the user click the refresh or back button etc. for some reasons, they
pdf file is not available since it created on the fly when the request was
submitted.

So I am thinking about pull pdf file from database, but don't want the
database being hitted everytime the refresh button was clicked or the
requested is resubmitted.

View Replies View Related

Creating Clean, Retrievable XML Output

I would like to get a roadmap on learning from you folks. I need to learn
how to take an SQL view of data that I have and allow it's data to be
retrieved as an XML document in IIS.

I know how to create queries and views. I use Data Transformation Services
frequently (there isn't an XML document type in the OUTPUT options that I
can see) and, I actually get the concept of XML AUTO (for those who do not
know, this does a quick and dirty formatting of data in XML hierarchy), but
yet I do not know how to take these XML results and write them to a file,
allow it to retrieved (ONLY retrieved, not write back) from IIS as an XML
document type. Code:

View Replies View Related

Writing To DB

Ok, for my company, we have two current webpages, one for general company info and one specific to a product that we market. On the 2nd page, there is a form that allows users to request a consultation from the company. When it is sent, the information is stored in an Access DB for tracking purposes.

Now, I have been requested to put this same form on the general company website. All works fine, but I can't save to the db that is stroing the info once it is submitted. Boith sites are hosted by the smae company, but they do not have (as far as I know), a shared repository for files where I could put the db.

Does anyone have any suggestions as to how I can get around this issue? What I want to do is to have the form on both sites and have the submitted data saved into the one database.

View Replies View Related

Not Writing To My DB

I'm not getting error messages on this one so I don't know where to start looking. I type in my data in my form and this page should check it, add it then set a flag. Code:

View Replies View Related

Writing Out XML With ASP

I have to perform a database query and write the results to an XML
file.

I also need to form this XML file with a DTD file.

I'd like to hear some opinions on the best way to do this.

I figured out how to write out just raw XML using adPersistXML. But
that doesn't really help as the XML needs to conform to the DTD.

I also found a way to write out the XML file line by line
using .createNode and .appendChild...but that would take forever as
the database query returns 72 columns.

View Replies View Related

Writing Xml To Asp

i need have a problem on line 86 of this code. Could anyone suggest problmes.

The bit in red is where i think the problem is, but may be wrong. it is where it says the problem is in the browser when i go to run it Code:

View Replies View Related

Writing Few Messages

I have the following code as a part of authenticating a system.
If Rs.eof Then
Session("Authenticated") = 0
Response.Write "Sorry, your userid or password did not match"
Response.Write "<BR>"
Response.Write "or you have not registered yet. Please register"
Response.Redirect("login.asp")
Else
Session("Authenticated") = 1
Response.Redirect ("Welcome.asp")
End If
In the first if statement, I would like to display the above messages
before forcing the login.asp page to display. Is is possible to do both
message and contents of login.asp in the same page? Thanks

View Replies View Related

Writing PDF Docs From ASP

how to write PDF documents from inside
of my ASP application. I understand that there are commerical APIs , SDKs that
I can use. eg. cutePDF.

View Replies View Related

Writing To A Database

i am having problems figuring out the syntax used when writing information to a database thru a dropdown.
i have a dropdown w/ all the months listed and i need this recorded into a database where i have already set up a column named "month".
right now all i have is html that says:

Code:

<select name="month">
<option value="January">January</option>
<option value="March">March</option>
<option value="April">April</option>
....... and so on.......
</select>

View Replies View Related

Writing To Excel

I have an asp page that queries a database and displays a report. There is a
button on this page that I would like to dump the report into Excel. The
code behind the button:

var xl = window.open("/reportexport.asp", "_blank");

and a new window is displayed with excel. Now the problem is how do I get
the report html into this new window?
xl.document.write(window.document.body.innerHTML); is obviously not the way
since it doesn't work.

reportexport.asp contains only two lines:
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "filename=report.xls;"

View Replies View Related

Writing Cookie

I've been having problem writing a cookie. Everything goes ok but when I
supply the .Path property to "/" It just write the cookie when there is no
cookie present, but when I try to update the cookie (or overwrite the cookie)
it doesnt change it.My requirement to supply the path to "/" because ASP.NET reads it. If I write the cookie without supplying the path, the ASP.NET pages are unable to
read the cookie.

View Replies View Related

Writing To The File

I have written a program where according to my query all the ouput is written to the text file. I want to add 3 lines to my text file which are needed so that it can be exported into outlook. Code:

View Replies View Related

How Can I Writing To A File

how can i write to a file and save to it by coding.

View Replies View Related

Writing To A Log File Using ASP On IIS

We have an existing ASP app that is doing a very simple form submission to an Access db. So it opens a connection does a write and closes the connection.

The problem is that every other form submission is failing because of an "Unspecified Error" - according to our IIS web server log.

I have 2 things I'd like help with.

1) Writing to a log file:
I'd like to write to a log file (either the web servers or a different one) from the server side code within the ASP app. So, once the code opens the DB connect I would like to know it was a success. Once it writes, I want to see the string its trying to put in, etc...

How would I do this in our ASP/IIS environment?

2) Catch errors:

If I'm opening a db connection to this access db, how can I be sure the connection is a success? does a value get returned that would indicate success/failure? if so how do I capture it?
I'm speaking of some type of try-catch system.

is there another approach I should be taking to debug this problem?

View Replies View Related

Writing ASP Files Using ASP

I have been playing with an idea that generates ASP files using an asp document and the file system object, so far it is doing great except one thing, when I have a chunk of text and I need to include an asp bracket ("<%" or "%>") regardless of being within the "quotation" marks the active asp document assumes it is a part of its own code and the script errors.

To get around this currently I am writing brackets like this "[<]" or "[>]" and then swapping them out of the generated ASP page using dreamweaver after creation.

The question is: Does anyone know how to represent asp brackets within a string being processed using asp??? Code:

View Replies View Related

Writing To .txt File

Im using this code to write information to a .txt file :

Dim objFSO, objTextFile

Const ForReading = 1, ForWriting = 2, ForAppending = 8

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile("C:Domainsattle-hq.comdbaction_log.txt", True)

objTextFile.WriteLine("This line is written using WriteLine().")

objTextFile.Close

Code:

View Replies View Related

Writing File

im writing an asp code to extract data textfiles from the server using FSO, but when I run the script the file were save at the server drive(c not on my local drive

View Replies View Related

Writing Cookies

writing cookies seems to be a no brainer, but for some reason, my temporary internet folder does not contain any of the cookies when run the pages. i am starting to think that it may be IIS 4.0. anyhow, these are the cookies that i writing:

<%
Response.Cookies("userInfo") = "quiz2.asp"
Response.Cookies("userInfo").Domain = "localhost.com"
Response.Cookies("userInfo").Expires = "August 31, 2004"
Response.Cookies("userInfo").Secure = True
%>

View Replies View Related

Writing To File

Can I write to a binary file from a VB script?

I get a syntax error:

Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/Web2_Local/custquery.asp, line 180, column 21
Open "DOWNLOAD.FIL" For Binary Access Write As #1

View Replies View Related

Writing A Tab To A File

I'm using the following to write a file :

filename = server.mappath(session("Directory") & "/Text/" &
ExportFileName)
Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject")
Set MyFile = ScriptObject.OpenTextFile(filename,2,true)
Myfile.writeline exportString
MyFile.Close

I'm putting tabs in the exportString the C way e.g. " " but they come out
in the text file literally. How does one write a tab to a file with asp? (I
don't want an HTML tab!)

View Replies View Related

Writing To A File

I am a web developer that deals with reporting.I am trying to make a print application so i can choose a few reports and then print them.I tried to do the window.print() but i don't want the print dialog box to come up.I am going to try and print from the server using WSH.

is that i need to write what is on my page to a file.The pages are dynamically created and have many tables on them.Is there a way to write the page that i am displaying to a file while keeping the formating intact.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved