Processing Forms With Dynamically Named Input Items
I am unsure how to process the results of a form where the name of the <input> is generated dynamically i.e.
<input name="X<%=counter%>">
or similar.
How is each input then referred to in the page the form is posted to? I can't see any way to dynamically create variable names in ASP?
View Replies
ADVERTISEMENT
I know it's possible to extract data from a named range on an excel sheet. What I want to know is can I dynamically generate a named range with X columns and Y rows with VBScript.
View Replies
View Related
I'm not sure if this is an HTML question or an ASP question, so I'm posting to both forums. I have a page that has two forms with two similar data sets. The action part of each form brings the user to a process page that updates some database information. I usually use Request.Form("variable"), but how can I determine which form was used? Can I request information from a particular form or should I use different variable names in each form?
View Replies
View Related
What's wrong with this code ? It worked fine untill I added the second part of it - the emails which is sent to me (Administer).. What have I done wrog ?? Code:
View Replies
View Related
I have a from with four elements a checkbox and a textfield and two which are hidden. Jobid and userid.
The jobid is written once and the userid is These are dynamic items from the database.
What i want to do is loop through the items and then insert the new values back into the database via an update statement. Code:
View Replies
View Related
I have a query on a page that displays the results of a recordset. Each row has a check box that has the table ID associated with the row of data.
I am trying to figure out how do I send every row checked to another page and have that page know the ID's that were checked so the next page can query the table for those ID's and fill out a submission form. I know the form fields I can write so it dynamically names the value based on the script, that part is easy, but trying to figure out how to have the script accept multiple ID's so it can go through each and display the results is not.
Now this is simple if I am just sending one ID to the next page, I can just use a "Post" and append a ?id=xxx to the URL and then do a request.querystring for the ID. Where I am confused is trying to send multiple ID = 's to the next page so it reads more then one ID if more then one was checked on the previous page which 99% of the time it will be.
HERE IS MY MAIN QUESTION:
What should I look up to point me in the right direction to create a classic VBScript/ASP code to parse through the ID's that were checked on the previous page and have the next page query each ID for the data?
I can pretty much figure out how if I know what I am looking to do. I was just looking for some sort of direction that I can pursue to understand how do do this task. What is it I am trying to do? IS there a term or set of terms I need to consider looking up to get examples so I can tweak and write it from there?
View Replies
View Related
<INPUT TYPE="FILE" SIZE="50" NAME="FILE2">
I have this form field that I'm processing on another ASP page on submission. How do i determine if this field has had any data input? I tried
<% Request.Form("FILE2") %>
but it does not have any value. What am i doing wrong?
View Replies
View Related
In our legacy asp/web-application, we have
date/time-input form in USA style
(i.e. mm/dd/yyyy and 12hour-scale time with AM/PM).
There is also some validation code on client side,
and then submitted data are used in MSSQL queries.
Now I would like to know about how to generate locale-dependent
HTML form layout, and what ready-made ASP code could I borrow
for this task.
View Replies
View Related
I have a funtion that is supposed to add items in my shopping basket.
It's an array, and each time the user is adding an item, it adds the item to the array with its quantity and size.
I've never used arrays before, read about it, etc...
The only problem is that when it adds the new product, it's not keeping the ones which were there before :-(.
I have used REDIM PRESERVE. So can't find out what is wrong.
Below are the funtions that i use for testing and the coding where I implement them. Code:
View Replies
View Related
I've been searching for a complete listing of the CDO constants, but have
come up empty. Where can I find a listing of all the CDO named constants
that can be referenced directly with the CDO metadata typelib, i.e.,
<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
View Replies
View Related
Can you use named anchors in ASP links?
I am using an <IFRAME> on one of my pages and want to jump to one part of the page that is loaded, but I'm also passing querystring variables in the link. It doesn't seem to recognise the #now anchor that I want to jump to.
View Replies
View Related
I have a little code to add multiple items to a shopping cart based
page. This code works perfect, but it adds all of the info to the
same input fields every time it loops. I need it to change the input
names each time it loops. Here is the code:
View Replies
View Related
Can I name my array index rather than number?I am reading a RS into an array and rather than reference the fields in each elements using a number, i would lke to use the column headers from the table:
myArray(13,6)
would become
my array(name,6).
The reason is that i am worried about a query being added to in the table and throwing the column numbers out.
View Replies
View Related
Let's say I have a form like this:
<form action="handler.asp"> ... </form>
Within handler.asp, I output a number of named anchors:
<a name="important1">Important 1</a> ...
<a name="important2">Important 2</a> ...
<a name="important3">Important 3</a> ...
In my form processing code, I want the returned page to jump to one of these anchors depending on the result of the processing.
How can I do this?I don't want to use a redirection because then I would have to
re-process the same page.
View Replies
View Related
I am trying to passing some variables via the url and also a named anchor appended to the end. unfortunetely the named anchor is been read in as part of the last variable.
threads.asp?t=96&f=15&j=y#288
I use request.queryString("j") to retrieve the value but the value returned is y#288 and no y as expected.
Is there anyway to fix this problem.
I can't pass the value via a form.
here is the code I use to create the url
Code:
View Replies
View Related
All of these fail :
response.redirect("page.asp?Param=Param#Anchor")
response.redirect("page.asp#Anchor?Param=Param")
This one works fine :
location.href = "page.asp?Param=Param#Anchor"
I have a solution i dont like :
i can replace #Anchor by &Anchor=Anchor
Does someone has an other idea ?
View Replies
View Related
Basically, I would like to create a folder on my server for each user that comes to my site based on their last name which they enter. The code I have below is incomplete as I don't know how to incorporate the lastname into the CreateFolder method.
dim lastname, objFSO
lastname = Request.Form("lastname")
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
folder = Server.mapPath("/test/")
objFSO.CreateFolder(folder)
Set objFSO = Nothing
View Replies
View Related
I have developed an extranet system, that is not recognizing any named anchors in IE. The top drop down on the page should be jumping the user to each section. It works beautifully in Firefox, but not in IE. Has anyone encountered this before? Any insights?
View Replies
View Related
Here is what I am trying to accomplish.
Language: .asp vbscript
Building a searchable real estate property database (MS Access)
Search page submits form variables to result page.
Works great but I have seen other web sites where the results page is a custom named page. for example.
If you search for homes with the following criteria.
Criteria: Buford, GA 30519
Your results page is named something like the following.
MLS-Buford-GA-30519-10-Distancea-0.aspx
Is this only doable in .aspx or can I accomplish this task in .asp?
View Replies
View Related
I am trying to solve the following exception. The exception occurs when my
ASP.NET code behind code attemtps to access a remore site using SSL. Please
note that all certificates are valid and the remote site is trusted. Also, my
web site uses a custom HTTPModule implemented in a DLL named Security.dll.
Unable to find an entry point named EnumerateSecurityPackagesW in DLL
security.dll.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.EntryPointNotFoundException: Unable to find an
entry point named EnumerateSecurityPackagesW in DLL security.dll.
View Replies
View Related
I have being working with making an edit field over the past few days. The edit function is now working fine. The edit fields that i have are for id, subject, notes, timedate.
All of the edit screens are one line text screens. What I want to do now is increase the size of the notes box to a larger textarea type box to make it easier to edit notes. The notes field in the db is a textarea field. Code:
View Replies
View Related
Does anyone have an idea how the showasp.asp file is able to direct the user to the demo_text.asp file without changing the URL. I'd like to see how this type of direction is being processed. Code:
View Replies
View Related
Do you guys know how to parse an input(text) to verify if it contains special characters. The input should accept numbers or letters only.
View Replies
View Related
I have no major programming background so am struggling to enable processing of forms on my website. Normally I just use Frontpage extensions or a freeware CGI script.
However, with this particular site, which is being hosted in Zimbabwe, the hosting company says they only support Java or VB enabled forms for processing. Does anyone have any idea where I can get a freeware script that will be easy enough for me to implement?
View Replies
View Related
I've written the following piece of code which is embedded in HTML. For some reason when the script is processed the last response.write statment is displayed before the information in the while loop. I can't seem to figure out why this is happenming.
Any ideas? Code:
View Replies
View Related
We have written a CMS, where we want user to upload a specific size of images. But if they do in some other sizes, the site becomes ugly. Is there any way in ASP to dynmically resize/compress/edit to display the image, in such a way that its not spoiling the look, even if its not very perfect.
View Replies
View Related
Anyone have any links and/or code samples demonstrating how this can be done: "Processing" progress bar/"in-between" page? Current procedure is that john doe clicks an item on a datagrid of mine and after however long, gets the info he wants.
What I want to do is have a page that pops up "in-between" the two pages. Something that says "Processing Request: Please Wait" or somesuch and have a progress bar or something as well would not have to be an accurate progress bar, per se.Anyone have any links/samples?
View Replies
View Related
How can we carry out image processing (similar to PHP GD Library) to manipulate Images using ASP. Can we call Windows API functions for the same thru ASP?
View Replies
View Related
I've got two pages. The first page has a simple form that collects a value from the user and then posts this value to the second page that performs a query. This query has some loops in it that can sometimes force it to wait up to 15 seconds.
My question is how can I implement a "Processing Request..." message until the results are returned? Right now it just sits on the first page until the results are returned, THEN goes to the second (display) page. How do I call some sort of message to be displayed so it's a smoother transition and the user doesn't think the browser has stopped responding?
View Replies
View Related
I have a basic search feature in my website, but am having a problem executing one of the search criterias. If a user types a word with an apostrophe such as "what's" my ASP script throws an error.
a way out so that i would be able to return the search result for a word that includes the apostrophe.
View Replies
View Related
Is it possible to have server1 do a post to another page on server2?
Server2 page does it's thing and submit the results back to server1. All of
this is done without any reference in the url. I tried server.execute and
transfer but it only works on the same server.
Basically, I have a component on server2 inside my firewall. Server1 is for
public use. Users enter server1 and request what report they want. The
report should pass to server2 to instantiate an object and create a report
on the fly and store the pdf on server1. Users just have to view or
download it from server1. All this is done without the user knowing they
left server1.
This does work if I sent the server1 form action to server2. But then it's
on url now.
View Replies
View Related
I have set up a page specifically for printing, however, I would like to be able to choose certain items on the page that are to be ignored by the printer. For example, the web version of the page may have instructions on how to print, although the version that is printed off does not.
View Replies
View Related
How can I get this to work?
<% if objRS2("System") <> "Scholastic" OR "Rolling Readers" OR "Reading Recovery" Then Response.Write "selected" End If%>
View Replies
View Related