473,396 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

xsl param and querystrings with net

I have another newbie xml/.net question. All apologies. I'm trying to get
an aspx file to modify an XSLT file based on a querystring. ie.
recipe.aspx?recipe=3 will add this line to the XSLT file:
<xsl:param name="recipe" select="3" />

I'm getting this error message pointing to 'xslArg.AddParam...' when I
execute the .aspx file:
Compiler Error Message: BC30188: Declaration expected.
..vb file:
Imports System
Imports System.IO
Imports System.Xml
Imports System.Xml.XPath
Imports System.Xml.Xsl
Imports System.Web.UI.Page
Imports System.Collections
Imports System.ComponentModel
Imports System.Data
Imports System.Web

Public Class transF
dim xslArg = new XsltArgumentList()
xslArg.AddParam("recipe", "3") 'this is set to 3 just for example -- later
it will be a querystring variable
xmlDisp.TransformArgumentList = xslArg
End Class

..ASPX file:
<%@ Page Inherits="transF" Src="recipe.aspx.vb" %>
<asp:xml runat="server" id="xmlDisp" DocumentSource="recipes.xml"
TransformSource="recipe.xslt" />

XSLT (line to change):
<xsl:param name="recipe" />

Thanks!



Nov 12 '05 #1
0 1104

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

Similar topics

4
by: JA | last post by:
I have this little tell-a-friend script that will send out a link back to the site. I want to put a link on my product pages that will go to the script, and have the script display the product...
1
by: Amy | last post by:
I am having a strange problem. I pass data as a querystring from an aspx page to an asp page to generate an email. THe data is then used to go back to the original page and allow access based on...
1
by: ALPO | last post by:
ARe there any good articles or examples on using the querystirng or form requests in VB code behind?
0
by: Rob Meade | last post by:
Hi all, I read an article on ASP.Net website the other day which sent me off to this address : http://www.dotnetjunkies.com/HowTo/99201486-ACFD-4607-A0CC-99E75836DC72.dcik It gives a good...
11
by: thogek | last post by:
We've been working with the ASP.NET 2.0 sitemap functionality, and one problem we're currently having is a need to be able to generate a web.sitemap file that includes URLs containing querystring...
1
by: Rich | last post by:
Hello, I can update a dataset from my client app using a dataAdapter.Updatecommand when I add parameter values outside of the param declaration. But If I add the param values inline with the...
2
by: QTR | last post by:
Hello, I discovered a strange XSLT behaviour on Weblo 8.1. Let me explain it (see at the end my example XSLT): I call a template (1) with one parameter (A) which calls another template (2) with...
1
abehm
by: abehm | last post by:
Hi, I'm trying to pass multiple values through querystrings to another page where i will parse them to individual variables. I have one method to create the querystrings before they pass, but for...
2
by: seanmatthewwalsh | last post by:
Hi Is there a way to use querystring links that don't look like typical querystrings? E.g. say I have a blog where the unique title of an article is "Dollar set to strengthen", and which has...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.