I know that is wrong, but how do i do it? I am using hidden for fields in other places
The reason I want to place this one in a session is that what the code is doing is creating a form for the user and if it creates a hidden field it creates it outside the form. so i therefore have to use a session variable. Is this possible?
I want to call a recordset so you can edit the details and then obviously pass the parameters onwards into the db. However, the user guide just says this:
To process other fields in the form, use the Form collection of the upload object the same way you would use the Form collection of the Request object. For example, if your form had a text element named UserName, your processing code would include: Code:
<a href="javascript: Search(<%=chr(65)%>)"><%Response.write(chr(65))%></a> <% For i = 66 to 90 %> <a href="javascript: Search(<%=chr(i)%>)"><%Response.write(chr(i))%></a> <% Next %>
This returns a list of letters The problem is when I pass them to the function I get a not defined error. I have to convert them somehow so the javascript then can use them.
I am having two scripts; A.asp and B.asp. in page A.asp it has a link that pops up window B.asp. my question is: when page B.asp pops up, i want it to show me where it came from. here's the script in page A.asp Response.Write("<a href=""B.asp?ID="&conn("id")&""" onClick= ""return popupwin(this,'b')"">Printable version</a>")
i know ServerVariables(HTTP_referer) works but it doesn't work with popup windows. any ideas?
I am using ASP to open a text file on the server and I want to pass variables to Javascript. Any suggestions?
For example - I have a text file on the server defining a set of pictures. I open the text file to retrieve the list of files. I want to pass the list of files to the Javascript which will then display the data on the client machine.
I have a web site completely developed with .html pages.
My affiliate and ecommerce system are written in asp, as is the only registration page (register.asp).
If an affiliate sends a visitors to our registration page and the user decides to browse the site before registering we lose track of the affiliate id variable..
..Is there a way to pass a (one) variable between the html pages as the visitor browses the html based site and then have it passed to the registration page (register.asp)?
Also is there a method to set a cookie that retains this variable, and have it set to a one week expiration so that when the visitor returns to the site the most recently refering affiliate gets credit.
If passing of the variable is possible with javascript, can the javascript automatically check for the existence of the aforementioned cookie?
I have a wierd problem. I have a multi-dimensional array. When a user selects a certain item in a drop down box, I need to manipulate certain data in the page. So essentially to find the correct information in the array, I have to know the selectedIndex in my select statement. I error checked the javascript function using an alert, so it works. I just need to know how I can pass the selected index to the array, and then pass the array to the javascript "updatePreviewPane"
I have javascript calander in the form of three list boxes (day, month, year). when selected I would like the values to put into a text field in Dreamweaver so I can then submit to the database. Is this possible and how could it be achieved.
I have a submit form that collects my values, and if my form action is "mailto" the values are passed, but if I try to pass to another asp page the values aren't sent and the asp doesn't execute.
pn = rs("PrinterName") I put a response.write (PN) and it displays the correct print name
Later down the code I put in <input type="hidden" name="PN" value=" & PN & "> <input type="submit" value="Add Maintenance Record" name="cmdAddMaint" onClick="window.open('addMaint.asp','addWindow','width=500, height=300')">
I have a page which has a form in it. The form allows the user to pick a date and when he hits submit, he sees sales for that particular period of time. That works.
However, once he sees the sales for a particular time period, he has the option to click on a branch and see the breakdown of sales for that date.
I have that as a separate page and can't figure out how to pass the date to the new page. Right now when he clicks on the branch it says 0.00 because it doesn't think there is a date.
I have an ASP called seat_add.asp, when it is initially called I send it three values
sead_add.asp?sitenum=xx&site_name=xx&ttype=xx
within the ASP i have two forms because I am loading one dropdown from a access DB and when the user selects something from the list dropdown two is then loading using information from the selection in dropdown 1 in the SQL query.
This is done via an onchange(this.form.submit) on the first form. I am losing my values and I am not sure as to why?
I have a shopping cart displayed in a ASP.NET page using HTML Table Control. The shopping cart item details are displayed in each rows of the html table.For a purticular item say shoes i have a html select control inside the row which displays the colors available.which the user can select..also i have the size listed using another select control in the next row.
The table and rows,control and their data are build at run time and I want to access the values of these controls when i click a hyperlink "Add to Cart".The hyperlink takes me to the next ShoppingCart Display Page.
In the firts form a selection is done. After submit a second form is called. In that form there must be select from a list that is depending on the result of the first form. So far so good. The selection of the second form and the selection of the first form must pas to a thirth page when the submit botton is hit.
I use in the second form:
<input type="hidden" name="hclass" value = <%Request.Form("klas") %>>
But that seems not to work. ( no error appears)
This test works correct <input type="hidden" name="hklas" value = "test">
Iv had this problem for two days and iv been trying to work around it but its getting kinda messy. Im trying to pass values from my form,thats okay,passing them to the same page and putting them in asp variables,the problem is there a way of submitting the form everytime that you leave a frame,(i want to collect all the values from each frame) I hope i explained this okay.
I have 3 option buttons, 3 select boxes correspondingly adjacent to them. Based on the selection of option button, the form should paas values of the corresponding select box. I tried using Javascript.
Is there an elegant way that I can return a value from a JavaScript function to ASP.NET? I want to have a popup confirmation dialog using JavaScript and only have a button control execute its ASP code if the confirmation is positive. I can associate the JavaScript with the button using the Attributes property and get the confirmation dialog to appear but the button control always executes.
onclick of an image button in my main page(parent.asp), im calling window.open("child.asp")as a popup!! child.asp has 36 checkboxes and a submit button.
I want my users to select any or all of the checkboxes and on clicking the submit button i need that popup(child.asp) to be closed and those checked values to be passed on to the parent page(parent.asp)!
onclick of an image button in my main page(parent.asp), im calling window.open("child.asp")as a popup!! child.asp has 36 checkboxes and a submit button.
I want my users to select any or all of the checkboxes and on clicking the submit button i need that popup(child.asp) to be closed and those checked values to be passed on to the parent page(parent.asp)!
I have a form which I can upload images to a web server. In the same form I have a drop down box which is populated by folder names in a specific directory (see code). I would like the user to select the images to upload and to the select the folder (from the drop down box) they would like the image(s) to be uploaded into.
I am having trouble passing (via a post method) the value of the dropdown box, namely the folder name to the upload code page. I passed value from drop down boxes to other pages successfully in the past but something is going wrong somewhere - it doesn't seem to pull any value through - would it be something to do with how the drop down box is populated?? Code:
On this page, I have a form with a Select box for DistrictName. I would like to pass the selected value to the above query and use it as part of the WHERE clause. I know that is not a problem. I can do the following:
Select * from tblEmployee where DistrictName = '" & Request.Form("DistrictName") & '"
Here is the problem. One of the values in the Select box is "All Districts". How or what do i send to the query to pull employees for all districts?
Form page My Server 2nd server html ---------->My.asp------->2server.asp
User can submit the form in html to myasp. In my.asp I am using winhttp to send the form values and some additional values to the other server's asp page without showing the user where the actual process is happenning.
I have used the samples, but I am not getting the values in the 2nd server.
How to get the values?
Note: I dont want to expose the 2nd server in Myserver. MyServer can be from anywhere (ie. the myserver may not known by 2nd server)