Passing Variable To Parent Page
I want to pass a variable or value from the pop up page to the parent page. how do i do that?
Another approach i was thinking was dragging and dropping the selected variable from pop up page to the text box in the parent page. but i dont know whether ASP has any drag and drop module or something.
View Replies
ADVERTISEMENT
i am trying to pass a variable to another page using a button.this is the code i have
<form action="G_Reply.asp?Title="<%=rsUser("Title")%>" method="post">
<button name="add" type="submit">
<img src="Pictures/G_Chat.png" width="150" height="20"></button>
</form>
Even though it does not work ,it does pass the variable when using as hyperlink like :
<% response.write ("<a href=G_Reply.asp?Title="&rsUser("Title")&"> Post Reply </a>")%>
(rsUser is my recordset and ("Title") is the field in the database. )
View Replies
View Related
Is it possible to send a variable through a hyperlink, to a frames page, and have all 3 pages in the frame pick up the variable using the request.querystring ?
In other words, I click on a link that has ?id=2 lets say.. it goes to a
page called umm say index.asp the index page has a top, main, and a left.
how do i get each one of those to receive the variable, when i can only send
it to one page? or is it possible to send it to more than one page, but only
travel to one page? so the link looks like index.asp?id=<%=var%> Code:
View Replies
View Related
I am storing the hidden variable in DISPLAY.ASP
View Replies
View Related
I have a Function in VB Script that generates a signature. I assign the result to a variable and then need to do a hidden post to an ASP Page for further processing.
Basic functionality is I have a button upon pressing it -- It does the hidden post.
Code looks like this. Please assist with passing this stringToSign variable to the .asp page via hidden post. Code:
View Replies
View Related
i have a form that pops up based on a click. the popup opens up correctly.
now what i want it to do is this.
1. submit the data to an asp page. that part i got working
2. close the popup box. have that working as well.
3. after processing the data on the asp page, direct to and refresh the
parent page that the popup was created from.
to be more specific....
i have a bracket page, where you click on the winners name to move them
over. works fine. that sends variables to a pop up box, where you enter a
score. that works fine. now when i submit, it only sneds the data to the asp
page, and even though the bottom of the asp page redirects it to the parent
page, it doesn't. it seems like it is trying to redirect to the popup that
doesn't exist anymore, so it does nothing.
View Replies
View Related
I have an ASP page form that will be used for data entry. I am redoing a MS-Access Runtime application that has been used for a few years.
One of the issues; "What to do about the conditional visibility code" I had set on several of my Form objects.
What happens is, based on what value the user selects from a drop down box; additional fields would become visible requiring input. What I came up with in ASP was a POP-Up Window.
I got the window working by downloading some code from a tech site and I set up a "Switch” statement to conditionally the POP-Up window's initiation.
I set up users input fields and I tested it and it works fine.
The PROBLEM:
With the Parent window still open, how can I pass the values from the POP-UP back into it for use? I mean without closing the Parent Window and Losing all the data values entered in the previous form fields.
How do I set it up so that when a user submits the Parent window data the POP-Up values go with it? I've have tried the standard POST Method but the Parent can not see the POP-UP window Form Field values.
View Replies
View Related
is there any way of passing a javascript variable over to a asp variable so
i can write it to my database.
View Replies
View Related
This is my coding:
window.opener.location.reload(); window.close();
I don't want the IE to pop up the alert msg to false retry or cancel to reload the page.
I have tried:
1. window.opener.location = window.opener.location
2. window.opener.history.go(0)
But as i carry some data from previous previous page, when i use (window.opener.location = window.opener.location), it can't capture my data as it just load the page. It will pop up error as no data captured :
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: ""]'
Any suggestion?
View Replies
View Related
I have an asp application where in a certain page you have to enter a PO number, if you click the search it will bring up the 15 most previous PO number w/some information.
I want to be able to have those PO Numbers to be links, that when you click them it closes the new window(I have this) and the parent page can grab the PO number clicked and display that in this text field how would I go about this?
View Replies
View Related
I have a datagrid displaying data. There's an "edit" button, which I use Javascript to create a popup window where I can change the information. There's a "save" button on the pop up window.
Currently, I have to click the save button, and the the close button to close the pop-up window, go back to the calling page and refresh it before the information is updated in the calling page.
I would like to be able to use the "save" button on the pop-up window to close the pop-up AND reload the parent page. Is that possible?
View Replies
View Related
I am trying to make a variable appear in an SQl but am not sure how. Here is the sample code:
View Replies
View Related
i try to passing variable using get method in a url.
this is my example url
headertext="PE&CCA"
<a href="addsection.asp?uid=<%=uid%>&sublvl=<%=sublvl%>&headertext=<%=headertext%>">add</a>
i did print out teh variable headertext at addsection.asp, what i get is from the variable headertext is PE, so what shd i out in the url to get PE&CCA in my addsection page?
View Replies
View Related
I have a PHP page with a form which captures some information about a user before then redirecting the user to a ASP driven website. Thing is, there is obviously nothing to stop the user from simply noting the URL of the site they have been redirected to, and then going direct to the site everytime after.
Is there a way I can make the homepage of the ASP page only open, if it has been passed a hidden variable (by _POST). I could probably do this if the referral site was in PHP, but I have no experience of ASP. I assume i will need to input a few lines of code at the beginning of the ASP homepage which look for the POST variable and only open the site if it has been passed from the PHP page?
View Replies
View Related
I'm building a site with news headlines on my index.asp page. I want these headlines to link to a file called story.asp. This page would contain the entire article. The data is coming out of Access.
Am I supposed to use a querystring to pass the storyID from the headlines on the index.asp to story.asp? Is there other/easier ways to this? I want to be clear in the direction I'm heading.
View Replies
View Related
Is it possible to pass the "text content" in a table to a variable.. here's my code
<table border="1" width="443" id="table1">
<tr>
<td><%response.write vFieldOperator%></td>
</tr>
</table>
you see i want to pass the content in that particular table to a variable..
View Replies
View Related
I am pulling info from a recordset and all the information is correct as I have tested it in Analyzer.
The recordset returns info inside a table. From that table, I select a few options then submit the form. During the submit it passes 6 parameter. Up to this point, everything is correct. My problem is that my last parameter is passing the ID and not the Manufacturer Name. Code:
View Replies
View Related
Does anyone know how you would pass a variable back to the classic side from the ASP.net side? I pass a variable to .net, but for the life of me I cant seem to figure out the way to reverse it from .net to classic. Below shows where my variables are stored on the .net side from classic ASP.
Code:
Dim BgDate = Request.Form.GetValues("BeginDate")(0)
Session("BeginDate") = BgDate
Dim EdDate = Request.Form.GetValues("EndDate")(0)
Session("EndDate") = EdDate
View Replies
View Related
i have a problem when i'm passing a parameter into my function, it gives me an error saying invalid column ts Code:
View Replies
View Related
I have a form that you enter in a file path i.e c:folder1
you then click search and the application will search for that folder and check if it exists if so it will return a list of files in that folder. you are alowed to select what files you want to copie and then enter in the folder you want to copie them to.
here is my issues: i enter in my folder to search on and it is good I get a list of files in that folder I am also given the the folder path at the top of my table. in the code I have also created a hidden field so that when I click on my copy button my from folder path is sent over to that I can us it in my objFile.CopyFile.
NOW Here is where I go *WTF* at the top of my page I am printing out my folder path vartiable and it is right. however once i press that copy button the folder name gets cut off at the space i.e E:flkfkdlsdkklfile2 inforil....
so how do I fix this here is my code I have tryed to highlight the partst pertaing to this issue. Code:
View Replies
View Related
Im trying to pass the 'month' variable which is a session variable from one page to another. It manage to appear on the other page in a textbox but when I try to pass it to the recordset, it fails. Can I know why?? This is the page which I'm passing the variable to. Code:
View Replies
View Related
im trying to learn how to pass a variable taken from a database and write it into an xsl stylesheet. And ive found some info regarding this but its too advanced for me to understand. Could anyone explain it to me in newbie terms?
View Replies
View Related
What I have is an ASP page that starts off with multiple ways to access a project list and other pages via mysql queries. One of those is a button with the following
<form name="ProjectsActive" method="post" action="P_ProjSort.asp?ActiveSort=1&MySort=1">
From this button I'm wanting to pass a variable to acknowledge that it is ONLY wanting ACTIVE projects and also what was originally already there which is the MySort for sorting by different columns. The next page has the following I cut out some irrelevant stuff. Code:
View Replies
View Related
Can someone tell me if they see an error in my SQL statement? I'm passing the TEAMID var into this page. I know that works because I tested it.
ERROR:
Microsoft JET Database Engine error '80040e10'
No value given for one or more required parameters.
/league/teams/team.asp, line 13
<%@ language=vbscript%>
<!--#include virtual="/includes/common.asp"-->
<% Dim teamID %>
<% teamID = Request.QueryString("TeamID") %>
<% Set rs = Conn.Execute("SELECT * FROM tblTeams WHERE TeamID = " & teamID )%>
View Replies
View Related
I have a session variable 'Status' that I created in page1.asp in my website. After creating this session variable, page1.asp will redirect to page2.asp and will display 'Status' value. This works in both IE and Netscape.
A problem starts when a page (redirect.php) from another website (which belongs to a client) tries to call page1.asp. Using IE, page1.asp can't pass 'Status' value to page2.asp. However, in Netscape, page2.asp can display 'Status' value.
I don't think my code in page1.asp is wrong because it works if I type in the url to page1.asp directly in IE. The client's website runs on Linux. Anyone know if this is the cause for this problem? Anybody know how to solve this problem?
View Replies
View Related
I have an ASP site and an PHP site.I would like to pass a variable 'loginname'from the ASP page to my PHP application in the form of a link,eg.:
mysite.com/index.php?username=myname
'myname' is a Global variable / Session.
Can anyone tell me if it is possible to make a simple encryption for the 'myname' variable so I can pass this variable to PHP without people knowing the username?
Example:
1. ASP will encrypt the username into 'sfh234gge'
2. link will be mysite.com/index.php?username=sfh234gge
3. PHP will decrypt the username again into 'myname'
I hope I am clear with what I am trying to do?
View Replies
View Related
I have a form and a variable called strPostcode.The code for the form is as follows:
<form name="formPostcode" method="post">
<input type="text" name="txtpostcode" />
<input type="button" value="Go" onClick="window.location.href='main_menu.asp'" />
</form>
I want to store the value of entered into the textbox and output it onto another page.
Any ideas on how to do this?
View Replies
View Related
I am trying to write a little script using includes ... but I am getting errors, I am passing a URL variable to use an include.
<!--#INCLUDE VIRTUAL=Request.QueryString("path")-->
Am I missing something?
View Replies
View Related
how to pass variable using a url?let say i have a page contain a variable Variable, so when i want to pass the variable using url i shd using what code?thx a million.
View Replies
View Related
I have created an ASPX web site to use as an EMail page. But I want to use this for a lot of users. Can I create the link on the WEB site to mail to passing a variable from the WEB site to the ASPX web site to E-Mail to? Hope I explained this correctly.
View Replies
View Related
I currently have a form on a page that allows you to search a database for all information on certain states. From a drop down jump menu it passes that variable of which state you selected into an ASP query.
I am building a interactive map in Flash that I would like to replace the drop down menu. So when you rollover a state it lights up and when you select it it passes the variable into the ASP query. Does anyone know how to do this out of FLash?
View Replies
View Related
i using an url to pass variable to another page, the variable supposed to be EnglishEnglish1Poem, but when i pass the variable to another page, it become EnglishEnglish1Poem, so what can i do to get the priginal variable? Code:
View Replies
View Related
a simple asp page named “download.asp”. Flash would pass a variable called “link”, which will contain a string.
This string would contain a url which the download.asp page would call to download. We need the “content type” to be set accordingly to trigger the specified content to be downloaded directly instead of displaying in the browser window (e.g. jpeg files).
View Replies
View Related