Forums
This topic is locked
Go To Detail Page.
Posted 07 Feb 2005 17:04:19
1
has voted
07 Feb 2005 17:04:19 Russell Marshall posted:
The Go To detail page feature of DW passes a single url parameter to a detail page.Is it possible to modify this to pass 2 or more variables.
I am using MS SQL and ASP Vbscript.
<A HREF="productupdate.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ProductID=" & RS_ProductsAll.Fields.Item("ProductID"

I also want to pass the field CategoryID from the same recordset.
Russell
Replies
Replied 07 Feb 2005 17:33:54
07 Feb 2005 17:33:54 Simon Martin replied:
Hi Russell,
Yeah you can pass more variables; however the querystring can only hold a finite number of characters (if memory serves me correctly its 255) But that's not an issue in this case
Just append your name/value pair to the querystring....
& "ProductID=" & RS_ProductsAll.Fields.Item("ProductID"
.Value & "CategoryID=" & RS_ProductsAll.Fields.Item("CategoryID"
.Value %>">Update< /a>
Live the life you love
Love the life you live
~ ~ ~ ~ ~ ~ ~
<b>Simon Martin</b> - <i>DMXzone Manager</i>
<font size=1>[ Dreamweaver MX/MX2004 | ASP | SQL | XHTML/CSS | Web Accessibility ] </font id=size1>
Yeah you can pass more variables; however the querystring can only hold a finite number of characters (if memory serves me correctly its 255) But that's not an issue in this case
Just append your name/value pair to the querystring....
& "ProductID=" & RS_ProductsAll.Fields.Item("ProductID"


Live the life you love
Love the life you live
~ ~ ~ ~ ~ ~ ~
<b>Simon Martin</b> - <i>DMXzone Manager</i>
<font size=1>[ Dreamweaver MX/MX2004 | ASP | SQL | XHTML/CSS | Web Accessibility ] </font id=size1>
Replied 07 Feb 2005 18:14:34
07 Feb 2005 18:14:34 Russell Marshall replied:
Thanks Simon. Works great thanks.
Russell
Russell
Replied 08 Feb 2005 11:25:28
08 Feb 2005 11:25:28 Vince Baker replied:
Dreamweaver allows you to use the dynamic builder to add many variables to the querystring:
when you click on the folder icon to link to a page you will see the option: Parameters.
Click on this and you will be able to select values from your recordset and enter titles. (does exactly what simon coded but in a dreamweaver 'builder' window)
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
when you click on the folder icon to link to a page you will see the option: Parameters.
Click on this and you will be able to select values from your recordset and enter titles. (does exactly what simon coded but in a dreamweaver 'builder' window)
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
Replied 08 Feb 2005 11:28:11
08 Feb 2005 11:28:11 Russell Marshall replied:
Thanks Vince
Very useful information.
Cheers
Russell
Very useful information.
Cheers
Russell
Replied 08 Feb 2005 11:55:40
08 Feb 2005 11:55:40 Simon Martin replied:
Does it???
Damn - wish I'd known about that
That is sweet
Live the life you love
Love the life you live
~ ~ ~ ~ ~ ~ ~
<b>Simon Martin</b> - <i>DMXzone Manager</i>
<font size=1>[ Dreamweaver MX/MX2004 | ASP | SQL | XHTML/CSS | Web Accessibility ] </font id=size1>
Damn - wish I'd known about that
That is sweet
Live the life you love
Love the life you live
~ ~ ~ ~ ~ ~ ~
<b>Simon Martin</b> - <i>DMXzone Manager</i>
<font size=1>[ Dreamweaver MX/MX2004 | ASP | SQL | XHTML/CSS | Web Accessibility ] </font id=size1>