Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Passing parameterts in ASP


Message #1 by "Sid Downie" <sid.downie@b...> on Tue, 12 Dec 2000 18:26:22 -0000
I am using ASP for a database application, and am looking for a reference

for a specific problem.



I am using frames, passing database-generated parameters from one frame to

another via VB script and forms, for use in further database queries. I

would like to be able to pass a parameter from frame A to frame B, but

interpose a message in frame B, http-equiv style, before the database

query is finally reflected in that frame. Nothing that I have tried so far

works, as I cannot find a way of automatically passing the parameters

through without creating a form, which then needs intervening user action.

Can anyone recommend a reference?



---

FREE WEB DEVELOPMENT CODE, CONTENT, AND INSIGHTS

IN YOUR INBOX!

Get the latest and best HTML, XML, and JavaScript tips, tools, and 

developments from the experts.  Sign up for one or more of EarthWeb's

FREE IT newsletters at http://www.earthweb.com today!  

---

You are currently subscribed to asp_databases as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_databases-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #2 by Paul Bucknell <pabuck@g...> on Tue, 12 Dec 2000 20:55:18 +0000
I'm not a moderator on the forum but what you are talking about is client-side

technology. Use Javascript or something similar to access different frames.



Regards

Paul Bucknell



At 18:26 12/12/2000 +0000, you wrote:

>I am using ASP for a database application, and am looking for a reference

>for a specific problem.

>

>I am using frames, passing database-generated parameters from one frame to

>another via VB script and forms, for use in further database queries. I

>would like to be able to pass a parameter from frame A to frame B, but

>interpose a message in frame B, http-equiv style, before the database

>query is finally reflected in that frame. Nothing that I have tried so far

>works, as I cannot find a way of automatically passing the parameters

>through without creating a form, which then needs intervening user action.

>Can anyone recommend a reference?

>



---

FREE WEB DEVELOPMENT CODE, CONTENT, AND INSIGHTS

IN YOUR INBOX!

Get the latest and best HTML, XML, and JavaScript tips, tools, and 

developments from the experts.  Sign up for one or more of EarthWeb's

FREE IT newsletters at http://www.earthweb.com today!  

---

You are currently subscribed to asp_databases as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_databases-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #3 by "Ron Weyersberg" <rnjunlimit@c...> on Tue, 12 Dec 2000 19:52:30 -0500

Lets just SAY FOR CONVERSATION YOUR PARAMETER IS STARTING IN THE CONTENT 

FRAMING, THE RESULT OF THE DATABASE QUERY ARE TO WIDE UP IN THE MAIN 

FRAME , .

insert AT THE TOP OF THE FRAME ON THE PAGE THAT STARTS OF IN THE CONTENT 

FRAME

%>

<BASE TARGET=3D"MAIN">

<%

This is a control for frames so it should work, I don't know but its 

worth a quick try.

Ron Weyersberg

----- Original Message -----

  From: Sid Downie

  To: ASP Databases

  Sent: Tuesday, December 12, 2000 1:26 PM

  Subject: [asp_databases] Passing parameterts in ASP





  I am using ASP for a database application, and am looking for a 

reference

  for a specific problem.



  I am using frames, passing database-generated parameters from one 

frame to

  another via VB script and forms, for use in further database queries. 

I

  would like to be able to pass a parameter from frame A to frame B, but

  interpose a message in frame B, http-equiv style, before the database

  query is finally reflected in that frame. Nothing that I have tried so 

far

  works, as I cannot find a way of automatically passing the parameters

  through without creating a form, which then needs intervening user 

action.

  Can anyone recommend a reference?





--- 

FREE SOFTWARE DEVELOPMENT CODE, CONTENT, AND

INSIGHTS IN YOUR INBOX!

Get the latest and best C++, Visual C++, Java, Visual Basic, and XML tips, tools, and 

developments from the experts.  Sign up for one or more of EarthWeb?s

FREE IT newsletters at http://www.earthweb.com today!  

---

You are currently subscribed to asp_databases as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_databases-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #4 by "Ken Schaefer" <ken@a...> on Wed, 13 Dec 2000 13:01:35 +1100
Suppose you have two frames, called frame1 and frame2.



User selects something in frame1.asp, you want a page to load in frame2 (eg

called frame2.asp) which displays something, which then reloads and does the

database query using the parameter selected by the user in frame1.



This is simple, and can be done using mostly, client-side technologies.



In frame1.asp, use a form or hyperlink to pass the paramter to page2.asp.



page2.asp contains something like:



<meta http-equiv="refresh"

content="10;URL=page3.asp?ID="<%=Request.QueryString("ID")%>">



which would reload the frame with page3.asp after 10 seconds, and pass the

parameter in the querystring.



Cheers

Ken



----- Original Message -----

From: "Sid Downie" <sid.downie@b...>

To: "ASP Databases" <asp_databases@p...>

Sent: Wednesday, December 13, 2000 5:26 AM

Subject: [asp_databases] Passing parameterts in ASP





> I am using ASP for a database application, and am looking for a reference

> for a specific problem.

>

> I am using frames, passing database-generated parameters from one frame to

> another via VB script and forms, for use in further database queries. I

> would like to be able to pass a parameter from frame A to frame B, but

> interpose a message in frame B, http-equiv style, before the database

> query is finally reflected in that frame. Nothing that I have tried so far

> works, as I cannot find a way of automatically passing the parameters

> through without creating a form, which then needs intervening user action.

> Can anyone recommend a reference?





---

FREE WEB DEVELOPMENT CODE, CONTENT, AND INSIGHTS

IN YOUR INBOX!

Get the latest and best HTML, XML, and JavaScript tips, tools, and 

developments from the experts.  Sign up for one or more of EarthWeb's

FREE IT newsletters at http://www.earthweb.com today!  

---

You are currently subscribed to asp_databases as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_databases-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #5 by "Ken Schaefer" <ken@a...> on Wed, 13 Dec 2000 12:58:04 +1100
I think your caps lock key is stuck :-)



Cheers

Ken



----- Original Message -----

From: "Ron Weyersberg" <rnjunlimit@c...>

To: "ASP Databases" <asp_databases@p...>

Sent: Wednesday, December 13, 2000 11:52 AM

Subject: [asp_databases] Re: Passing parameterts in ASP







Lets just SAY FOR CONVERSATION YOUR PARAMETER IS STARTING IN THE CONTENT

FRAMING, THE RESULT OF THE DATABASE QUERY ARE TO WIDE UP IN THE MAIN FRAME ,

.

insert AT THE TOP OF THE FRAME ON THE PAGE THAT STARTS OF IN THE CONTENT

FRAME

%>

<BASE TARGET="MAIN">

<%

This is a control for frames so it should work, I don't know but its worth a

quick try.

Ron Weyersberg







--- 

FREE SOFTWARE DEVELOPMENT CODE, CONTENT, AND

INSIGHTS IN YOUR INBOX!

Get the latest and best C++, Visual C++, Java, Visual Basic, and XML tips, tools, and 

developments from the experts.  Sign up for one or more of EarthWeb?s

FREE IT newsletters at http://www.earthweb.com today!  

---

You are currently subscribed to asp_databases as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_databases-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #6 by "Harsh Nandu" <harsh_stgil@h...> on Thu, 21 Dec 2000 09:14:53 -0000
Hi Friend,



I did not really understand your problem.

But as you have said that you can resolve the problem using some form.

As an extension to that you can still work it out by submitting the form on 

some event(i.e without user intervention).

This can be done from any of the pages(will require complete reference in 

terms of document.frame.form.submit()).



Also with form tag you can specify the target parameter to sumit it in a 

different frame.



Check out if this can help you.



And yes as Paul pointed out it's client-side scripting,preferably java 

script to keep it browser independent.



Regds,

Harsh







>From: Paul Bucknell <pabuck@g...>

>Reply-To: "ASP Databases" <asp_databases@p...>

>To: "ASP Databases" <asp_databases@p...>

>Subject: [asp_databases] Re: Passing parameterts in ASP

>Date: Tue, 12 Dec 2000 20:55:18 +0000

>

>I'm not a moderator on the forum but what you are talking about is 

>client-side

>technology. Use Javascript or something similar to access different frames.

>

>Regards

>Paul Bucknell

>

>At 18:26 12/12/2000 +0000, you wrote:

>>I am using ASP for a database application, and am looking for a reference

>>for a specific problem.

>>

>>I am using frames, passing database-generated parameters from one frame to

>>another via VB script and forms, for use in further database queries. I

>>would like to be able to pass a parameter from frame A to frame B, but

>>interpose a message in frame B, http-equiv style, before the database

>>query is finally reflected in that frame. Nothing that I have tried so far

>>works, as I cannot find a way of automatically passing the parameters

>>through without creating a form, which then needs intervening user action.

>>Can anyone recommend a reference?

>>

>



--- 

FREE SOFTWARE DEVELOPMENT CODE, CONTENT, AND

INSIGHTS IN YOUR INBOX!

Get the latest and best C++, Visual C++, Java, Visual Basic, and XML tips, tools, and 

developments from the experts.  Sign up for one or more of EarthWeb?s

FREE IT newsletters at http://www.earthweb.com today!  

---

You are currently subscribed to asp_databases as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_databases-$subst('Recip.MemberIDChar')@p2p.wrox.com


  Return to Index