473,804 Members | 3,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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?rec ipe=3 will add this line to the XSLT file:
<xsl:param name="recipe" select="3" />

I'm getting this error message pointing to 'xslArg.AddPara m...' 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.XPat h
Imports System.Xml.Xsl
Imports System.Web.UI.P age
Imports System.Collecti ons
Imports System.Componen tModel
Imports System.Data
Imports System.Web

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

..ASPX file:
<%@ Page Inherits="trans F" Src="recipe.asp x.vb" %>
<asp:xml runat="server" id="xmlDisp" DocumentSource= "recipes.xm l"
TransformSource ="recipe.xsl t" />

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

Thanks!



Nov 12 '05 #1
0 1116

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

Similar topics

4
1703
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 name, and have the product name in the email that goes out, along with a link back to the product page, instead of just to the general site, and then have the Thank You page include a link back to the product. I put it up as a project on a...
1
2298
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 previous permissions. I can access half of my querystrings on the asp page and display them however two that are vital are not displaying in the asp page and are not being passed back in the href as a querystring. Please any help is...
1
1074
by: ALPO | last post by:
ARe there any good articles or examples on using the querystirng or form requests in VB code behind?
0
1197
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 example of how to encrypt a QueryString so that it cannot be tampered (successfully) with etc, the applications that our organisation has written use querystrings quite a lot in places, and I would like to adopt
11
1292
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 data. Unfortunately, the presence of querystrings within the URLs in the nodes of a sitemap file seems to break the whole sitemap navigation functionality. I don't have the specific examples or error message in front of me (although I can get...
1
4274
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 param delcaration, then I have to invoke the update operation twice - by leaving the updated row - returning to the row and re-invoking the update procedure. Is there something else I need to do to add param values inline with the param...
2
1464
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 two parameters. The first parameter is param A (obtained from template 1) and the second param comes from another template (3) which just returns the given param (C). The second template receives 2 params (A and C) and prints them out. Thus, in...
1
1337
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 some reason nothing is being passed. Can anyone help me? protected void btnNext2_Click(object sender, EventArgs e) { if (MessageBox.Show("Proceed?", "Test Maintenance", MessageBoxButtons.YesNo) == DialogResult.Yes) ...
2
934
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 a PostID of 101. I can obviously have a URL such as: http://www.myblog.com/?t=dollar+set+to+strengthen which then checks the t item against the title in the database.
0
9708
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
9588
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
10589
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...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10085
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
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...
0
5527
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
4302
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
2
3828
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.