Run Submitted Code

What I want to do is create some code in a variable, then execute the variable, sorta like this code:Code:

<%

Code:
code = "response.write ('bla')"execute(code)%>

Except I want something that works (that code is conceptual)anyone have any idea's ?

View Replies


ADVERTISEMENT

Asp Submitted

I have an user.asp page(has html display) which displays
the controls; After client-side validations, I do a
document.form.submit() to a process asp page(no html, only
server side processing and then redirects to the user.asp).
This process asp calls some dll functions which might take
a couple of hours if number of records to process is huge.
Now, the dll opens a pop-up window which shows the status
of the results(number of records processed and failed).
After exactly 1 hour, the user.asp page says page cannot
be found. Is it due to some timeout or something? What
could be the reason?

View Replies View Related

From Submitted

I have a form that I need to have the information sent to a fax machine when somebody submits it. Can I do this from my website and if so, how?

View Replies View Related

IIS Hangs When Certain SQL Submitted

Does anyone have a suggestion how I could debug this
problem:

1. Data is collected from database and displayed in a form.
2. User updates data and submits it.
3. Submitted data is compared with old data.
4. SQL is generated for changes and put into an array.
5. SQL in the array is executed line by line.

I've copied the code which does the update from a working
page that does something similar. And tested it with a
basic update to be sure. But for some reason when I
submit this sql:

update table set currency = 'USD' where currency = 'GBP'
and company = 'LQ' and supplier_id = 'BCX0926' and
invoice_no = '654664432'

IIS hangs and the browser displays a blank white page. At
this point the whole site becomes unusable until I restart
the IIS Admin service.

I've pasted the sql into Toad and tested it there and it
works fine. Could anyone suggest what the problem is, or
how I could go about debugging it. Normally when I get
errors thet are written to the screen. But in this case,
I dont get anything back at all. Code:

View Replies View Related

Submitted Form

Is there any way to check when a form is submitted?Sample code is welcomed.

View Replies View Related

Using RTE But Nothing Is Submitted In The Form?

I added the RTE to enable text editing in a textbox. The editing box displays fine, but nothing is submited to the action url in the form object?

View Replies View Related

Value Submitted On Form

I have form around a table. The form contains checkboxes for whihc elements are selected, and hidden fields listing the current value of the elements, and the line identifier for every line so I can tell precisely which subset of the table was visible to that person at that time.

I need to determine if a line that is not selected was prior to this submission. Something pseudocode-wise similar to:

If (Len(Request("DueDate-" & TheItem)) <> 0 ) AND (Request("DueDate").Contains(TheItem)) then

Where Request("DueDate-" & TheItem) contains the current value of the line (not blank since the entry has a length). The second part is what I have a problem with. Without manually looping through Request("DueDate") to do a search, I have no way to tell if Request("DueDate") (which contains a list of selected items) contains the line I am examining.

View Replies View Related

Adding Values From A Submitted Form

I am trying to total the value of some form fields I am referecing the form
field with an inner loop, I am having a little trouble because the amount of
fields returned is always different, how can I roll-up the total of the form
fields (request.form("subtotal_"& i)) to get one final figure? Code:

View Replies View Related

Triggering Email When Form Is Submitted

I know I've seen a tutorial on this, but can't locate it. I have a form that I've written that submits into a SQL database. I'd like it to fire off a notification email as well when an entry is submitted. Can someone point me to a tutorial that explains how I can do this?

View Replies View Related

Form Gets Submitted Onchange Event

I have a form with textboxes,and a select option(country)..onchange of select
element,i reload the form because i hit database to get cities of country selected..
whatever info user has entered is being stored in session variables.

my problem..as the form gets submitted onchange event of select user is able to write in textboxes but this info does not get stored in session varibles(but info written in textboxes before select is used does get stored and i am able display again onload of the form). how can i tackle thisproblem.

View Replies View Related

How Can I Check That A Submitted E-mail Adress Is Valid?

Say I retrieve and e-mail adress from a form like this, then I know how to check that it's not empty, contain numbers etc. but I don't know how to check that the e-mail complies with some kind of regular expression or the like.

Therefore I wonder if you have any good e-mail form validation code that can be used on the server side (comparable to Java Script reg.exp on the client side).

<%

Dim mail
mail = request.form("email")

IF mail = "" or mail does not complain with some kind of reg. exp THEN

some code....

End IF

View Replies View Related

Find And Return Data From A Just Submitted Record.

I have a page where a user can submit a record for a new "applicant". After the user clicks Submit, I would like to send the user to a new page containg the "Applicant Number" which the user will need.

The applicant number is simply the autonumbering of the record in the table which is in a SQL Server db. How do I capture the record number(primary key) of the newly entered record in the table and send it to my new page?

View Replies View Related

Submitted Time Spent On A Page To A Log File

I am looking for the best way to capture the time spent on a page and then write that to a txt file sitting on a server when the form is submitted. Right now I capture the time spent using javascript... I know i cannot write to a file using this. I am not looking to learn any in-depth ASP stuff... just looking for a simple solution if at all possible.

View Replies View Related

Trying To Insert Multiple Records Into Database When Form Is Submitted

I'm trying to insert mutiple records into my database when the form is submitted.. My form has 4 textfields; serial1, price1, serial2 and price2.

I would like to insert serial1 and price1 as one record, then serial2 and price2 as the second record. I know some sort of loop has to be used to achieve this but i'm new to this and I don't know what to do...

I tried to do it with dreamweaver but it does not seem possible and the dreamweaver code seems really complicated I've only been able to insert only the first row(serial1,price1).. since I only have 2 fixed rows I guess what I need to do is to get dreamweaver to do it twice in a loop. Code:

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

Pdf On The Fly Any Asp Code

do you know of any asp code that makes a pdf on the fly.

if there's none do you know of a good, not-so-expensive and easy-to-implement component?

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

Asp Code

how to get the content or information of other web site using asp code.

View Replies View Related

Pop Up Code

is there any way in asp to execute a pop-up window when a condition in an if statement is satisfied

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

Asp Code

figure out what the ASP code is to email a form?

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

Vb Code

in 3 tier wed based application ..i want to run my vb code seprate for debug purpose...how can i do this>

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







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