I'm attempting to include a file within another file using Server.Execute. This works fine... however, I need to pass the value of a variable defined within the parent file to the one included via Server.Execute.
From what I've read, the included files are processed before the parent files, so it seems as though the variable is getting lost. Is there any way to internally (not relying on query string) to pass a variable to an included file?
I have a batch file that takes variables from the cmd and passes them by sqlcmd to an SQL script. When I pass the variable 'MikeTestList' the script runs as expected with no problems. When I passed 'BulkTransferTest' I got an error message, 'The string or binary data will be truncated'.
Some testing has shown that I get the error when the string is anything above 12 characters. Is there a limit to the length of a string you can pass using sqlcmd from a batch file? Is there any way around it?
Also, if I have a space in the string, it only passes the string up to the space. I have tried to fill it with a '%' which then gets passed as is, so the % stays in place through out the script. Code:
I'm wondering for a way to reload my included page (with a few recordsets) from time to time and display and alert for a trigger limit (based on recordset results)..
I tried to reload it using js, but in that case it reloads the whole page and not only the included file...
<script type="text/javascript"> function page_reload(){
window.location.reload() } function page_reload() { var t=setTimeout("page_reload(),30000) } </script>
Is it possible to get the filename, and more importantly the path, from inside an ASP file, when that file is included? I know it can be done for the base file using Server variables, but I can't figure out how to do that for an included file.
I need to write an application that uses include files, and that may be moved to another folder on the server...
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?
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?
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.
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:
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
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:
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:
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?
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
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:
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?
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'
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.
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.
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?
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:
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).
here are in attach files the two asp classes involved.
In my class ListeArretsAValider.asp renamed in .txt, I pass the parameter named Action in the url to my class ResultatValidation.asp renamed in .txt. I do have a value cause when I do in my class : Code:
its for a uni project and i need some help, my uni asp server doesnt support CDONTS and i cant get an automatic emal thing to work, but i have got a simple php one working on a different server (www.slinky-designs.co.uk)
now the user is entering their email address ( variable = "m_ail") in flash and passing it to a asp script to put it in a database, and i want to email out the user welcoming them to the list. I have been told i need to set up a poxy script to pass this variable over to a php script on the other server.
The ASP page contains a dynamic drop down menu with project manager names. I would like users to choose a specific manager and click submit. The form should pass the managers last name as a variable to a page that lists all of the manager's projects. I have the dropdown created but when I submit the form it has an empty variable. What are my options?