navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Passing field-value to a page in a frame-set

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Passing field-value to a page in a frame-set
Page: [1]
 
Guest


 
Passing field-value to a page in a frame-set - 3/19/2001 20:46:00   
I’m building a site with FrontPage2000, O.S. is Windows2000. I’m using a frame-set with an ASP-page as one of the frame-pages. The ASP-page contains a database, one field of the database contains a hyperlink to another frameset in a new window. I want to use the content of the field in the database as a variable, in order to put a html-page in one of the pages of the new frameset. Let’s say, if the content of the field is “xyz”, I want to have “xyz.htm” as a page in the new frameset. Can I do this in FrontPage2000 without additional scripts (in which I have no experience at all) ?
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Passing field-value to a page in a frame-set - 3/19/2001 19:14:00   
Im not heavily into frames myself, but if your frameset page is asp, then use a querystring to construct it dynamically.

So instead of specifying the actula page, use :

<%=Request.Querystring("Pagename")%>.htm

The link from the DB would be :

frames.asp?Pagename=xyz

Thus xyz.htm would be loaded in the frameset


(in reply to Guest)
Guest


 
RE: Passing field-value to a page in a frame-set - 3/20/2001 15:50:00   
quote:
Originally posted by Spooky:
Im not heavily into frames myself, but if your frameset page is asp, then use a querystring to construct it dynamically.

So instead of specifying the actula page, use :

<%=Request.Querystring("Pagename")%>.htm

The link from the DB would be :

frames.asp?Pagename=xyz

Thus xyz.htm would be loaded in the frameset


Thanx for your answer. I used the <%...%> as you proposed, but I still receive "the page cannot be found" for that page in the new frame-set. When I look at the properties of that particular page, the URL takes the <%...%>-variable literaly, he doesn't translate it in the real value. Any idea ?


(in reply to Guest)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Passing field-value to a page in a frame-set - 3/20/2001 17:18:00   
Is the frameset saved as asp? Is the code pasted as asp and not html ? ie - in code view, you see the actual asp code?

(in reply to Guest)
Guest


 
RE: Passing field-value to a page in a frame-set - 3/21/2001 23:28:00   
The frame-set was saved as htm. This is indeed the solution, thanx a lot for your answer, Spooky ! Unfortunately, I’m stuck on a new problem now. When I call the new frame-set I now get the page I want thanx to the request.querystring. One of the other pages in the frame-set is an index-page with buttons that link to other pages using the same variable (say Axyz, Bxyz, ...). I wanna use the same <%...%> in the hyperlink in the buttons, but the requested variable now seems to be empty. I’ve changed all concerned documents in asp. Can I use this variable only once ? If yes, what would be the best solution to keep this variable during the time the frame-set is used ?

(in reply to Guest)
Guest


 
RE: Passing field-value to a page in a frame-set - 3/26/2001 20:30:00   
Do I have to post this again in order to get an answer ?

(in reply to Guest)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Passing field-value to a page in a frame-set - 3/26/2001 20:07:00   
No, I just have to find it

Use the same theory, load the new asp page with the key :

?Pagename=xyz

On that page, you can use the same way to fetch the string.


(in reply to Guest)
Guest


 
RE: Passing field-value to a page in a frame-set - 3/28/2001 20:32:00   
Hello Spooky,

Sorry for my impatience and thanx for your answer. Only I think we're now on the wrong track. Let me explain again. I start with a frame-set containing 3 pages (logo, index and a head-page containing a database). One of the field names of the database is "Code". When I click on that field I call in a new window a new frameset containing again 3 pages (logo, index and a head-page). The hyperlink on the field consists of the following URL: NewFrame.asp?Code=<%=FP_FieldURL(fp_rs,"Code")%>. The head-page in the new frame-set contains the following page: A<%=Request.Querystring("Code")%>.htm. Till this point, this works fine thanx to your previous answers. The index-page in the new frameset consists of several buttons of which the hyperlinks should link to: A<%=Request.Querystring("Code")%>.asp, B<%=Request.Querystring("Code")%>.asp, C<%=Request.Querystring("Code")%>.asp. These hyperlinks don't work because the request.querystring seems to be empty then. In your last suggestion you talked about loading the new page with a key, but as we talk about frames, the index-page is already loaded on that moment. Any idea ?


(in reply to Guest)
Guest


 
RE: Passing field-value to a page in a frame-set - 4/4/2001 20:24:00   
Hello Spooky,

Sorry again for my impatience but do you think there's a chance you can solve this problem ?


(in reply to Guest)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Passing field-value to a page in a frame-set - 4/4/2001 20:41:00   
Just remember that every page that you request from the frameset will have to pass the code via querystring.

So if the index page has buttons on it that need the code, you should have loaded index.asp?Code=<%=Request.Querystring("Code")%>

Its one of the joys of trying to use frames, sharing variables between them is not easy!


(in reply to Guest)
Guest


 
RE: Passing field-value to a page in a frame-set - 4/11/2001 20:34:00   
Hello Spooky,

Here's a late "thank you" for helping me, thanx !


(in reply to Guest)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Passing field-value to a page in a frame-set
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts