Transfer Array From One Form To Another
I would like to ask how to pass an array from one form to another. I have tried below but it cant work...
View RepliesI would like to ask how to pass an array from one form to another. I have tried below but it cant work...
View RepliesI first retrieve the values stored in a session variable (where I have stored an array). Then I assign the session variable to a local array called "myarray".
Assume that "myarray" now contains 5 records. What would the code look like if I want to create a loop that transfers the 5 values from "myarray" into a select box/dropdown list?
How is that done?
I am a new programmer seeking a right way for transferring data between forum to forum, as i am creating a site wich have a page keeping 20's of server controls like drop down list and text boxes the value of ddl2 changging on change of ddl1 and displaying its corresponding value in text box and i have 10 rows in this way and i wanna display all selected values of server controls in next page as report.
View Replies View RelatedI have a form that is posting to itself. Does the necessary validation on the data.
Once it passes all validation, it is redirected to another page. I need to access the data that was submitted on the first page on the redirected page.
I know you can pass your data along via URL but I am unsure how to access the data once it is in URL form.
I also read that you can use Server.transfer and access your form objects with request.form(var_name).
Any idea what is causing this error? 006~ASP
0230~Server.Transfer Error~The call to Server.Transfer
failed while loading the page.
Just read about benefits of Server.Transfer over
Response.Redirect, replaced, and getting the error.
What I need to do is to create a form of a dynamic size, and then save
everything from the form in a database. The number of forms depends on
a number from the database which I know how to get. I need to have a
comment and a number, for example if the number from queried from the
database is 2, then I need 2 forms, and it would be something like so:
Comment: Something
Number: 4
Comment: SomethingElse
Number: 6
When the user clicks the submit button, this would be saved in a
database in a table, in a new row. I have the database created and
inserting works very good when inserting just one row, but I need to
insert more then one row at a time, so it would be something like
this: Code:
can i use array in request.form?
how can i use it?
I have problem getting right info using array.
When I post data with form:
<% i = 1 %>
<input type="text" name="Boys(<%=i%>)">
and retrieving the data on another page:
<%
i = 1
Response.Write Request.Form("Boys(i)")
%>
I do not see the data. If I replaced "Boys(i)" with "Boys
(1)", I can see the data. What am I missing?
I am trying to do some client-side form validation using vbscript. The form consists of 15 rows, with five fields in each row. For example, I want to be able to look at the contents of the 3rd field in the 9th row. How do I reference that field using vbscript? Do I loop through a collection?
View Replies View Relatedwhat i want to do is have a (multi dimensional?) array, so that each second dimension represnts a row of radiobuttons. The trouble is i don't know what to name the arrays as. Obviously for each row the names for the different radio buttons will be the same, meaning you can only select one.
in php you could do it with a single array as you name each row of radio button differently:
1st row:
name='array[0]'
2nd:
name='array[1]'
in asp it doesn't look like you can do it this way, because to create a similar array you'd do something like
1st row:
name='array'
2nd
name='array'
then use split in the recipient script. This does not work however, because each radiobutton (on all rows) has the same name, and therefore when you click one all the rest on every row are unclicked..
I'm submitting various form variables as arrays, so when I do try to
access them when the form is submitted, i do a split on the variable
and pop it into an array.
for example:
aDescriptions = split(request.form("strDescriptions"), ", ")
The problem however is if a description contains a comma in the text,
it throws off the split function.
Question is, is there a way to change the delimiter of the form array
to something other than a comma. Or does anyone here know a more
elegant workaround.
I have an array varibles in ASP script and i want to use these
varibles again in client Script (in VBScript) .
how to create an array of checkboxes that were selected from a form on one page and pass them into hidden fields in a form on the next page? I have this massive project I've been working on and am having trouble with this.
View Replies View Relatedif i have a vbscript function on a certain form and I assigned some values on an array variable on that function, is there a way for me to retrieve the values of that array on another asp page once i submitted the form?
View Replies View RelatedI dump the entire recordset into an array:
If not rs.EOF Then
aEmp = rs.GetRows()
Contents of the array are in this order:
EmpID,EmpName,Indent,Sub_ID,Lft,Rgt,MgrID, LastName
This query sort on the basis of Lft and Rgt columns.
The name of the array is: aEmp.
My question here is how can I get only the LastName from the aEmp array into another array so that I can sort the names alphabetically and then display the employees in the alphabetical order.
Or is there is another way I could this by using the same array while keeping the lft and rgt sort of the query? If I sort based at the SQL query level, I can see the names sorted by the lft, rgt and lastname, but since the lastname is at the end of the sort list - it does not appear alphabetically.
In working with arrays, I have found that I am unable to dimension and array
with a variable that has an integer value but I can redimension one this
way. I haven't see any information that tells me if this is a requirement,
although it appears to be because I get an error if I try it.
Ex.
Dim b
b = 10
Dim a(b) ' this errors out but
Dim a() ' this
Redim a(b) ' works
Code:
I have 2 pages the first one has a text box, beside the text box there is a link when you click the link new window will come, and this window has a table retrieve the employee names from the DB, and these names are links, I need when I select the name should transfare to the first page , How ?
View Replies View Relatedi hope no one is getting sick of my server.execute/transfer questions..
does server.execute return a value? im wondering what happens if an error
occurs in the .asp file that i'm calling with the server.execute command??
is there a value/flag i can set in the case of an error that can be seen
once i return to the calling page? if not i was thinking that i would have
to use a session variable for my error handling.
i want to stay true to the model, view, control architecture so i don't want
to simply redirect in the case of an error - i want to send a value back to
my control page which will decide where to go.
I would like to use Server.Transfer to redirect users to a given page,
while maintaining the state of form fields. This works fine on a single
server.
However, this will be deployed in a load balanced environment. I know
that Session variables and load balanced environments don't mix. Do I
have a cause for concern with Server.Transfer as well?
I would like the value of the textfield from text1 from Select_License.asp to be transfered to swname from License_add.asp when i click on the Next button from Select_License.asp ....
View Replies View RelatedThe Transfer method allows you to transfer from inside one ASP page to another ASP page
Is there a similar thing - The Transfer method taht allows you to transfer from inside one ASP page to a DLL.
I m using ASP(not .net) ,I want to use server.transfer from a.asp to a.asp (the same page), but i want to remove all the querystring before transferring the page.........although response.redirect can do, it cannot fulfil some response.write b4 the redirection.
View Replies View RelatedI am using the following statement in my asp page , it doesnt work
server.Transfer(ftp://mymachine/dir1/data.zip)
anyone in here got an idea on how i could transfer a value of a form text to another asp page just by using <a href="">
View Replies View RelatedI need to make a table's data available to users. The table is about 150,000 rows x 20 columns. So Excel is out of the question. I think the next common file types would be MDB or DBF. Using ASP, what are the steps to converting this data to one of those file types, then ZIPPING the files for download?
View Replies View RelatedI'm doing file uploads using the free component ASPSimpleUpload but I have problems of file transfer when the file size is too big or the connection used by the sender is slow.
I'd like to transfer file via FTP from a web page instead of using ASPSimpleUpload. Has somebody already done that and has some code or some links to give me?
Is it possible to transfer a dynamic, asp site built on top of an Access database onto a cd for demonstration purposes?
View Replies View RelatedCurrently I have someone wanting to transfer their site, ran in IIS/ASP, to one of my servers so that I can host if for them. I am running Windows 2003 Server with IIS 6. I have a disk that has the files for the site (from root down) I created a new site, put the files in there and configured the properties in IIS, but I only get a 500 (Internal Server Error) error page when it tries to run. I set the home directory, permissions, documents to point to the index.asp file, etc...
View Replies View RelatedHow would i embed the Server.Transfer() into the button onClick() event.
I did try this:Code:
<td><input type="button" name="edit" value="Edit" onClick="<%Server.Transfer("edit.asp")%>"/></td>
but this will display the edit.asp page without the need to click on the Edit button.
i just realized that II5 is not with me i am running PWS on win98.so can i use response.redirect so that i can transfer parameters like a variable or a value?
View Replies View RelatedI would like for an ASP page to transfer a text file (from the same
directory the ASP file is in) to another Web server.I don't mind if the code is in ASP or VB.I suspect that there is a way of having an ASP page conduct an FTP session
to transfer the file. would like to do this without a component as I'm looking for source code.
I am creating a database and it has to be up dated from all over the county.But Unfortunately there are some users who have only telophone connection not internet connection. Is ther any way that I can allow them to up-date my database using telephone line i/o interne.
View Replies View RelatedMy team would like to use an ASP script to have an automatic transfer of files to our live server happen each evening at a predetermined time. I was looking on the web for a script but all I could find is user driven upload scripts.
Is there anything out there that will facilitate automatic uploads of several folders and files via ASP scripts?