Server.Transfer Into A Frame
I'm trying to pass 2 simple values (an integer and a string) from a start page (start.aspx) to an aspx contained within a frameset (say destpage.aspx).
I can server.transfer the values directly to destpage.aspx but I'm struggling to work out how pass the form values to destpage.aspx when it is contained in a frameset.
Is there an easier way? Is it possible to pass the values to an aspx that defines the frameset then pass to destpage.aspx?
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Server.execute/response.redirect/server.transfer
Real quick, please refresh my memory which one of the following preserves the information that was posted from a form? server.execute server.transfer response.redirect I need to have a page execute if an error occurs while processing a page that a form was submitted to and have the data preserved.
View Replies !
View Related
Error Server.Transfer / Server.Execute ()
Any one has Idea, How to use Server.Transfer and Server.Execute, When I tried to use these methods I got an eror: Server object error 'ASP 0230 : 80004005' Server.Transfer Error /SISWeb/portal_logon.asp, line 40 The call to Server.Transfer failed while loading the page. anybody is there who can respond to this problem. Do I need to change any setting at IIS?
View Replies !
View Related
Redirect A Frame Target From Server
I need them for presentation control and they work quite well except for this one "little" problem. One of my pages located in a frame submits a form to itself for verification. The ASP psuedo code is if verified Response.Redirect newTopLevel page (else keep going and reload me again in the same frame) I can't change the base target of the frame until I verify, in which case I don't want to return to the same anyway. Basically, how do I switch targets from the server to set a new top level frameset page?
View Replies !
View Related
Server.Transfer
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?
View Replies !
View Related
About Server.transfer
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 Related
[Server.Transfer()]
How 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.
View Replies !
View Related
Server.Transfer Vs. Server.Execute
i'm using a model, view, control architecture for a group of .asp pages. i can't decide whether to use Server.Transfer or Server.Execute to pass posted data from my control to my model. are there security implications for using Server.Execute? just wanting some advice on pros/cons to each of these since this is the first time i'm attempting to use these methods.
View Replies !
View Related
Server.Transfer Between 2 Different Web Apps
I have 2 seperate web applications A and B. During the execution of A, I want to do a Server.Transfer to a page in application B. This works fine if A has a reference to B, but without the reference, I get the following error: Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'B.WebForm1'. Source Error: Line 1: <%@ Page language="c#" Codebehind="B.aspx.cs" AutoEventWireup="false" Inherits="B.WebForm1" %> Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > Line 3: <HTML> Source File: c:inetpubwwwrootBB.aspx Line: 1 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032 It seems to be looking for B.dll in the path for application A, and can't find it. Because of the specifics of this project I am unable to set a reference, or even include a <codeBase> element in the config file. Is there any way to force the runtime to look in the path of the target application instead of the launching app?
View Replies !
View Related
IIS Logs And Server.transfer
I am thinking of creating a custom 404 page which does a server.transfer to a variety of different pages. My question is what shows up in the log, which the web statistics are based on? 1. The non existent page, which is requested? 2. The custom 404 page? 3. The page it gets transfered to?
View Replies !
View Related
Problem With Server.Transfer
I am trying to open a jpg file using server.transfer which is giving me this error I have about 10 images out of which 7 are working and for three images i am getting an error message. I have listed the error message Active Server Pageserror 'ASP 0116' Missing close of script delimiter /rtp/trt.jpg, line 11 The Script block lacks the close of script tag (%>). error '8000d001' /ttt.asp, line 7 Please send me a solution as i have been trying this from the last three days and could not find a solution.
View Replies !
View Related
Server.transfer Second Parameter
I read somewhere that server.transfer had a 2nd parameter so control and input values were 'passed' to the transferred to page, but it's giving me an error of wrong number of parameters. I have IIS5, is that the problem? or is it that it's an ASP page (not ASPX)
View Replies !
View Related
Server.Transfer Error
when i try to redirect a page using the server.transfer i get this error: Active Server Pages error 'ASP 0116' Missing close of script delimiter /database/mydatabase.mdb, line 7832 The Script block lacks the close of script tag (%>). error '8000d001' /admin/pages/DatabaseMan1Re.asp, line 15 Line 15 is: Server.Transfer("/database/mydatabase.mdb")%>
View Replies !
View Related
Server.Transfer Error
I user Server.Transfer "MyTest.asp" to redirect the ASP page and it went through successfully If I used Server.Transfer "MyTest.asp?R=22 The system return "An invalid character was specifiied in the Path parameter for the MapPath method." error (It seems that system treat parameter string as body of path This ASP works fine in Windows NT server, but it does not work on Windows 2003 server.
View Replies !
View Related
Server.Transfer Method...
Got a quick query in relation to the Server.Transfer method available in IIS 5+/ASP. I've got an issue where I want to take a portion of an online app and extract this out into a web site on its own, so I will end up having two web sites. This planned to aid problems we've been having with performance, as if the portion (which is an app in its own right) has problems we then have to restart the whole site and so bring everything down just because of the portion of the app which we're having issues with. Taking the portion of the site will allow us to run it in isolated mode in ISS and so just restrat that if needed, while not affecting the rest of IIS. Anyways, I'm in the process of writing a jump page to facilitate the process of moving from the first site to the new second site, but as we need to reuse session info created in site 1 I need a way of passing this over to the second site. I've been aware of the Server.Transfer but never really used it so I'm not too sure how I can actually use this. I was planning to write an ASP page that takes the required info out of session is site 1, calling Server.Transfere to send it over to the second site. I don't want to do a Response.Redirect, not wanting the client to do this and not allowing it to know what info I'm using in the session. And so, I thought the Server.Transfer would facilitate this, but after reading some of the documentation on MSDN I'm not sure I can, ie: redirect to another ASP page in this way and tack on a QueryString holding all the session info I need, as MSDN says that I'll get an 'ASP 0173 error, "Invalid Path Character"' error if I have a question-mark '?' in the path, or any other of a list of invalid chars. But then I need this '?' char to build my QString ie: XXX.asp?sas=123&jdy=0689... So what I'm after is some clarification that I can use Server.Transfere in this way or not, ie to redirect to an ASP page and tack on a QueryString, of if it just allows for an ASP page without s QString. So then if I want to do this I might need to use the Response.Redirect method, or some other way!! MSDN also says: "When you use the Transfer method, the state information for all the built-in objects are included in the transfer. This means that any variables or objects that have been assigned a value in session or application scope are maintained" ....So will I have the session info from site 1 available in site 2 after the redirect or does this only apply for a Server.Transfer within the same web (which I think is what it means!). I don't have an environment up that I can test this on yet so I'm kinda feeling may wat in the dark here, hence my lengthly post.
View Replies !
View Related
Server.Transfer And Passing Values
When using the Response.Redirect in test1.asp in this manner: Response.Redirect ("test2.asp?err=something&msg=somethingelse") You can pass values calculated in test1.asp to test2.asp. But this is a round trip redirect - and also shows passed values in the address bar. But when using Server.Transfer, as in: Server.Transfer ("test2.asp?err=something&msg=somethingelse") This is apparently not allowed, as I get an error claiming that non-relative references in the path of the file are not allowed. My question is: *Without* using application or session stores, how can you pass values between pages called in this manner - values that are not a part of the originally submitted information?
View Replies !
View Related
Passing Data Through A Server.Transfer
Any ideas on how I can set some data in 1.asp, then have 1.asp do a server.transfer (or .execute, come to that) to 2.asp, and have 2.asp access the original data? I'm aware that the Session object fits the bill but want to avoid using this if I can. Having said that, the nature of the data is very much per-user so things like the application object are definitely inappropriate. Another way I can do this is redirect/querystring, but the additional roundtrip here is not attractive. Any other (sensible) methods anyone can think of?
View Replies !
View Related
Server.transfer Vs. Response.redirect
ok here is my scenario - using model, vew , controller architecture: -- user submits the view page to the controller -- controller issues a server.execute on a model page to update the changed information -- upon successful updating of the the information, the controller issues server.transfer back to the view -- everything is fine at at this point, however, if the user hits the re-submits the page at this point, the original items are still in the request object from the first time around because the page never went out of scope - so this causes another update to be inssued because changes are detected between what is in the database and what is in the request.form collection.
View Replies !
View Related
Server.Transfer And Image Path
I have a subdirectory with it's own images folder. All the image paths in the pages in the sub directory are "image/image.jpg" When I Response.Redirect to a page in the subdirectory the images are fine but when I use Server.Transfer all the links are broken. I'd prefer to use the relative paths. Is there a way around this in the Server.Transfer?
View Replies !
View Related
Passing Form Values Via URL Or Server.Transfer
I 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).
View Replies !
View Related
Issue With Response.Redirect / Server.Transfer
I have a problem with getting a redirect to work on our server. It's worked fine on our server for months, but suddenly won't work and I can't figure out why. codewise, It's nothing special: Response.Redirect("indexThankYou.htm"); instead of redirecting the browser to this page, an JavaScript-alert-style message comes up with the text: Cannot Find 'file://E:wwwrootmdc00152-learnproengine2_00index.htm'. Make sure the path or Internet address is correct. (No page exists, nor was there ever any mention of it in the code) I've examined the output with fiddler to find: <html><head><title>Object moved</title></head><body> <h2>Object moved to <a href='E:wwwrootmdc00152-learnProEnginev2_00index.htm'>here</a>.</h2></body></html> I've checked that the aspnet client folder, and it's there and loads with a code 200 (from fiddler) Has anyone any ideas why this might have suddenly stopped working? Does this sound like a cache-ing problem? The code has worked fine previously.
View Replies !
View Related
Server.Transfer Vs. Response.Redirect... To... 209.11.22.33MyDir
Ok, I give up... why do 1-4 work fine... but 5-6 give "can't find" errors? 1. Client-side VBscript code: call navigate("209.11.22.33MyDir") 2. Client-side VBscript code: location.href ="209.11.22.33MyDir" 3. Typing "209.11.22.33MyDir" into my ie6 browser. 4. Typing "209.11.22.33MyDir" into my Windows Explorer. 5. Server-side ASP: server.transfer "209.11.22.33MyDir" 6. Server-side ASP: response.redirect 209.11.22.33MyDir" How do I make it redirect?
View Replies !
View Related
Server.Transfer, Response.Redirect, #Include, & Security?
I've got an application that I want to redirect to another file while keeping the location of the file hidden. In other words, WEBROOT.COM/REDIT.ASP?a=14 is going to display the contents of file WEBROOT.COM/SECURE12954 without the user knowing they are in the /SECURE12954 subdir. Which is better to protect that privacy the name of the /SECURE12954 subdir? <%Server.Transfer("/SECURE12954")%> or <%Response.Redirect("/SECURE12954")%> or <!-- #include file="/SECURE12954" -->
View Replies !
View Related
Lost Data If Using Server.Transfer Method Only In IE, Not In Firef
Our asp programs seem to have different behaviors when users use IE and firefox. One of most annoying things is the data disappearing problem in IE but not in firefox.(Note: Sometimes a search program can run much faster in Firefox than in IE, don't know why) For example, I have an internal user interface which they can do different product data entry, the program will use Server.Transfer to different asp program for data entry. Page1---UserInterface.asp Select Case Request("Product") Case "Sel" Server.transfer("/Virtualdir1/test1.asp ") Server.Transfer("/Virtualdir2/Test2.asp") Case "Bear" Server.Transfer("/Virtualdir3/test3.asp") Case "IMED" Server.Transfer("test4.asp") Case "AC" Server.Transfer("/Virtualdir4/test5.asp") Case Else End Select When user finished data entry on test1.asp(second page, the web address will still show UserInterface.asp page as you know), click continue, on the third page if they found something typed wrong, if they click back button in the broswer, all data on the second page is gone. This only occurrs in IE, Firefox is fine. It's very annoying, how can I fix it, if not, is there any other way?
View Replies !
View Related
Another Frame
I have two files index1.asp and index2.asp (Both contains html 3frames) index2.asp have fame name like this(top,middle,bottom) [B](in middle frame I'm showing grid1.asp file.)[/B] I'm showing asp files in these 3 frames. I'm getting database records and i want to pass "ID" of these database records in index2.asp(middle frame, grid1.asp) And i want to get this "ID" in middle frame in index2.asp How can i get? this is the code this is index1.asp <%response.Write("<a href=""grid1.asp?strID="&rs.Fields("ID")&"""target=middle>"& a &"</a>")%> and getting values of this ID this is grid1.aspstrID=Request.Querystring("strID") s = "SELECT * FROM Alphabit where ID="& strID set rs = conn.execute(s) it is showing me an error "Syntax error (missing operator) in query expression 'ID='. "
View Replies !
View Related
Target Frame On ASP
I have a page with 2 frames, F1 and F2. On F2, I have 2 more subframes, F2A and F2B. If I click a button on F2A, I want to open the page on the whole F2. I use parent.frames.F2.location.href but it doesn't work.
View Replies !
View Related
Link Out Of A Frame?
If you have a webpage with frames, say a footer frame that contains links, how can you get out of the frame if you click on a link in the footer. The it works now, is if I click on a link, the page loads inside the small footer frame. I'd like it to just get rid of the frames completely when I clickon the link. Any clue?
View Replies !
View Related
Frame With Javascript
I have a program created by Autodesk that uses alot of ASP & Javascript. The program uses an Ajax Viewer to pass a selection set through several files eventually making it to a file called "propertyctrl.aspx", inside that file, it passes to a file called "propertyctrl.templ", which once inside of it, just appears to be Javascripting. So, here is what it is supposed to do: A user clicks a polygon inside of the ajax viewer. Once clicked the property dialogue box populates the "Name" field, and "Value" field from the properties of the object that was clicked. It looks a little like this: .... The problem i have is the property dialogue box leaves alot to be desired. Its very basic, what i would like to do is somehow pass the values to another place and rework it so it looks more like this: ... I have a feeling all i have to do is intercept the code at the property box window and change them to variables that i can then use in HTML, but i am not sure. Below you will find the code for both the propertyctrl.aspx and the propertyctrl.templ file...
View Replies !
View Related
Target Frame
Is there a way in ASP to figure out if a page that is being loaded is being loaded into a frameset? I know I can code this in javascript,but I would prefer to only inject a chunk of 'onload' code in the body tag if infact the page is being loaded in a specific frameset.
View Replies !
View Related
Resize A Frame
i have A page that show List of many field from database and i have frames : Top , Left and Main Page. I think it's tired to see the fiel with horizontal scrolliong too long. I wonder that the left frame can be resize to Left(Close to left) then i can open it again. But I have no idea to doing that.
View Replies !
View Related
Inline Frame
I have a simple web app that consists of an index.asp page that contains in inline frame and several supporting .asp pages. none of the asp pages really include any asp code. I am trying to set the session.timeout value in my global.asa under the session_onload sub. I am trying to set the timeout value to 1 minute just for testing purposes. In the end I would like the user to be redirected to a timeout page when he/she clicks on any of the links after the 1 minute timeout has been reached.
View Replies !
View Related
Reload Frame
The page has Top frame (input) and bottom frame (result). The input html page send input to asp to generate result to bottom frame. The page works. But i wish to refresh bottom frame once i click the submit button to see the result by the java function <script language =javascript> function button1_onclick() { window.parent.mainFrame.location.reload(); } </script> But the bottom frame does not reload. is my logic wrong? is it conflicted with form action or method?
View Replies !
View Related
Asp In Frontpage Frame
i am trying to make user login and password then when it log in it is go to diffrent page in the website this page is frame page whitch contain three frame when i put the index page " the main page " in the server.execute("index.asp") it is dispaly nothing how can i make it dispale the frame but when i put single page to the server.execute("student.asp")' go to student page it exucute right.
View Replies !
View Related
Image Over Frame
I want to make a small (around 200x180) window that I can put somewhere on my site that reloads a website inside it, each time some one visits my site just like Iframe - infact you may even end up recomending Iframe. I also think I frame is the best way to do it, I found a great Iframe generator here. After the window is made I want to cover the window with an image of the same size, so that people don't see the website underneath, inside the window but the image. How can I do this?At another forum, they kept asking me why I want to do this etc.
View Replies !
View Related
ASP Page Is Not Loading In Frame
I have made this frameset for my site, 4 frames in it, and each one holds a html page. The mainframe however holds an asp page. Each time I try and load the frameset and preview it, in the mainframe I see all the asp code of the page, not the compilation of it. When I try and open the asp page separately, I can see the compilation just fine, tables and everything.
View Replies !
View Related
Auto Submit To A Frame
There are two frames in an asp page.When a frame loads,I submit a form to the other frame in onload event.Sometimes the code works fine, but sometimes it will submit to a new window. Why does it happen? how to resolve it?
View Replies !
View Related
|