473,776 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

master/detail page problem

Hi Everyone

I am having some problems with a master detail page i have set up to
catalogue brochures from my site.
On my master page www.tripakltd.com/brochures.asp users are invited to
select from a list of brochure categories, then once they press the submit
button they will be taken to a different page www.tripakltd.com/library.asp
The problem i am having, is that when I tell the detail page about the
variable from the master page as a % as opposed to a hard number, i.e 1 or 2
I get an error, Therfore for the purpose of displaying the page i have put
in a hard number (rsLibrary__ica tegoryid = "1" as opposed to ="%") but of
course this only returns to me brochures that belong to categoryID.
How do i fix this problem? all my other master/detail pages seem, to work,
save this one.

To simplify the problem i have created two pages with just the code ( i.e no
graphics, or templates etc..) that carry the same technology, and have
included the relevant source code on the same page, with a .txt extension
www.tripakltd.com/brochures1.asp and www.tripakltd.com/brochures1.txt
www.tripakltd.com/library1.asp and www.tripakltd.com/library1.txt

Can anyone help me sort out this problem?

I would greatly appreciate it,

Thanks so much

Raphael
Jul 19 '05 #1
8 4393
Hi,

I think the problem is that you're trying to pull in the product ID from the
querystring collection, but the form you're using is POSTing the data. So,
use Request.Form instead of Request.Queryst ring.

Ray at work
"Raphael Gluck" <Id***@haveone. honest> wrote in message
news:eo******** ******@TK2MSFTN GP11.phx.gbl...
Hi Everyone

I am having some problems with a master detail page i have set up to
catalogue brochures from my site.
On my master page www.tripakltd.com/brochures.asp users are invited to
select from a list of brochure categories, then once they press the submit
button they will be taken to a different page www.tripakltd.com/library.asp The problem i am having, is that when I tell the detail page about the
variable from the master page as a % as opposed to a hard number, i.e 1 or 2 I get an error, Therfore for the purpose of displaying the page i have put
in a hard number (rsLibrary__ica tegoryid = "1" as opposed to ="%") but of
course this only returns to me brochures that belong to categoryID.
How do i fix this problem? all my other master/detail pages seem, to work,
save this one.

To simplify the problem i have created two pages with just the code ( i.e no graphics, or templates etc..) that carry the same technology, and have
included the relevant source code on the same page, with a .txt extension
www.tripakltd.com/brochures1.asp and www.tripakltd.com/brochures1.txt
www.tripakltd.com/library1.asp and www.tripakltd.com/library1.txt

Can anyone help me sort out this problem?

I would greatly appreciate it,

Thanks so much

Raphael

Jul 19 '05 #2
If I get you right I htink the problem is that your select box does not have
a name......set the select as CategoryID and then the value should get
posted to the library.asp page.

Thats if I understand the question right.

Stu

"Raphael Gluck" <Id***@haveone. honest> wrote in message
news:eo******** ******@TK2MSFTN GP11.phx.gbl...
Hi Everyone

I am having some problems with a master detail page i have set up to
catalogue brochures from my site.
On my master page www.tripakltd.com/brochures.asp users are invited to
select from a list of brochure categories, then once they press the submit
button they will be taken to a different page www.tripakltd.com/library.asp The problem i am having, is that when I tell the detail page about the
variable from the master page as a % as opposed to a hard number, i.e 1 or 2 I get an error, Therfore for the purpose of displaying the page i have put
in a hard number (rsLibrary__ica tegoryid = "1" as opposed to ="%") but of
course this only returns to me brochures that belong to categoryID.
How do i fix this problem? all my other master/detail pages seem, to work,
save this one.

To simplify the problem i have created two pages with just the code ( i.e no graphics, or templates etc..) that carry the same technology, and have
included the relevant source code on the same page, with a .txt extension
www.tripakltd.com/brochures1.asp and www.tripakltd.com/brochures1.txt
www.tripakltd.com/library1.asp and www.tripakltd.com/library1.txt

Can anyone help me sort out this problem?

I would greatly appreciate it,

Thanks so much

Raphael

Jul 19 '05 #3
Hi Ray
I tried chaging it to Request.Form but still it only works with the "1" and
not with the "%"

Do you have any other idea what the cause may be?

Thanks very much

Raphael
Jul 19 '05 #4
Thanks for those ideas
I thought they looked just right to sort it, but when i tried, it still
didnt work.
Do you have any other ideas?

Thanks so much
Raphael
Jul 19 '05 #5
The name of your select box is "select" not "categoryID ."

You need to learn how to debug things. (I don't mean that the way it
sounds.) If you try to go right from point A to point Z and you don't get
there, you have to look at B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q,
R, S, T, U, V, W, X, and Y.
So, you have a form with a select box. The first thing you'd want to do to
debug this is to verify that the value from the select is being passed.
Here's what you'd do in library1.txt.
<%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>
<!--#include file="Connectio ns/Tripak.asp" -->
<%
Dim rsLibrary__icat egoryid
rsLibrary__icat egoryid = "%"
If (Request.Form(" CategoryID") <> "") Then
rsLibrary__icat egoryid = Request.Form("C ategoryID")
End If

RESPONSE.WRITE RSLIBRARY_ICATE GORYID
RESPONSE.END

What's that tell you?

It'll tell you that rsLibrary__icat egoryID is always %.
Then you wonder why that is. And you look at that code and you realize that
it must be because the If line is never true.
Then you wonder why that is. And you realize that is must mean that
Request.Form("C ategoryID") is never <> "".
Then you wonder why that is. And you look at the form and realize that you
didn't name your select "CategoryID ."

Or, you do something like
<%
For each x in Request.form
Response.write x & " = " & request.form(x) & "<br>"
Next
RESPONSE.END
%>

And you see all the form values. And then you notice that there is no
request.form("C ategoryID"), at which time you realize that you named the
select wrong.

Ray at work

"Raphael Gluck" <Id***@haveone. honest> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hi Ray
I tried chaging it to Request.Form but still it only works with the "1" and not with the "%"

Do you have any other idea what the cause may be?

Thanks very much

Raphael

Jul 19 '05 #6
Hi Ray,

Thanks i just changed the Select box, and called it CustomerID and now it
works,

But you are right to admonish me. I must learn!
This was done with a WSYWYG editor (dreamweaver MX) and i really must chuck
it .
I have done in principal. I am not using it to go further. I am now catching
up by going backwards and learning the basics, so as to move forwards.

Thanks very much

Raphael
Jul 19 '05 #7
Hi Raphael,
The solution I suggested was the solution you finally said fixed it.....what
did you try that didn't work based on my suggestion? Interesting for me as
if I am not explaining ideas right then it's pointless me suggesting stuff.
:o)

Stu

"Raphael Gluck" <Id***@haveone. honest> wrote in message
news:OV******** ******@tk2msftn gp13.phx.gbl...
Thanks for those ideas
I thought they looked just right to sort it, but when i tried, it still
didnt work.
Do you have any other ideas?

Thanks so much
Raphael

Jul 19 '05 #8
Gazing into my crystal ball I observed "Raphael Gluck"
<Id***@haveone. honest> writing in
news:eG******** ******@tk2msftn gp13.phx.gbl:
Hi Ray,

Thanks i just changed the Select box, and called it CustomerID and now
it works,

But you are right to admonish me. I must learn!
This was done with a WSYWYG editor (dreamweaver MX) and i really must
chuck it .
I have done in principal. I am not using it to go further. I am now
catching up by going backwards and learning the basics, so as to move
forwards.

Thanks very much

Raphael


May I suggest http://www.chami.com/html-kit . Free, syntax highlighting,
save your snippets, save your templates, plugins, HTML-Tidy plugin, other
plugins.

--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com
Jul 19 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2536
by: Ozgur YASAR | last post by:
Hi, i need to be able to active; on the first page a process is started with a (master) record insert and it will open next page on the next page a datagrid will be used to insert update delete detail vales of the master record finally the "save" button will actually save the inputs master-detail
2
1377
by: Coen | last post by:
Hello, I have a strange performance delay of about 2 sec's in moving to the next row. I use multiple forms with each master-detail table relations. The master-table displays it's table rows in databound textboxes, the detail tables in datagrids, and of course relations defined between the master and detail tables. All the tables are part of one dataset (per form). The following happens. When moving to the next tablerow (next record) I...
5
2567
by: Federico | last post by:
I have a problem, I have an event declared in a Master Page, and I want to use in a Content Page holder of a Content Page. When I want to create the method to handle the event, I can njot reference the Master Page event, in its place IntelliSense shows me a Delegate Sub EventHandler. I am new with events managements, so any help and guiadance will be appreciated. Federico
4
2256
by: Mark Olbert | last post by:
I have a website (ASPNET2) where the master page has a button in it and my login page, which is a detail page of the master page, also has a button (a login button). Everything works fine if I enter my user ID and password and click the Login button. But if I hit the return key instead the master page button gets invoked instead of the Login button. Is there a way of ensuring the Login button on the detail page gets the "default" return...
0
1708
by: Sam | last post by:
Folks, Attached I am sending 2 URL's from MSFT ASP.net Quick Start Tutorial Web Site. 1) Run it URL: http://www.asp.net/QuickStart/aspnet/samples/data/GridViewMasterDetailsInsertPage_vb.aspx 2) View Source URL: http://www.asp.net/QuickStart/util/srcview.aspx?path=~/aspnet/samples/data/GridViewMasterDetailsInsertPage.src I do understand from the Master Page (GridViewMasterDetailsInsertPage_vb.aspx) the last field from Gridview1
1
2183
by: Sam | last post by:
Attached I am sending 2 URL's from MSFT ASP.net Quick Start Tutorial Web Site. 1) Run it URL: http://www.asp.net/QuickStart/aspnet/samples/data/GridViewMasterDetai... 2) View Source URL: http://www.asp.net/QuickStart/util/srcview.aspx?path=~/aspnet/samples...
0
1302
by: Sam | last post by:
Sorry to post the same post multiple times but the URL Addresses were not Correct in Earlier Posts. Here are the correct URL's: 1) Run It URL is here: http://www.asp.net/QuickStart/aspnet/samples/data/GridViewMasterDetailsInsertPage_vb.aspx
4
2195
by: Janet | last post by:
Hi, I'm trying to use the master/detail page to display the information of staff. The master page will display some general information, while the differen detail pages will show the different kinds of staff details, like family member details, contact information, etc. Hence, this case, I'll have - Staff.master - Family.aspx
0
1726
by: Mike Wilson | last post by:
Dear group, I have an invoice entry form, which is a simple Master fields / Detail grid. The main summary information of the invoice are stored in one table in a dataset, which is bound using a BindingSource (InvoiceBindingSource). The line details of each item in the invoice is held in a child table which is bound to another bindingsource (InvoiceRowsBindingSource). I took the basic design from an MSDN article, and all works well....
0
9627
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9462
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10060
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8951
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7469
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5367
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4030
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2859
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.