473,511 Members | 16,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

send parameter to XSL

Eli
Hello.

I have an ASPX file. I want to transform my XML stored in file by XSL (from
file too). I successfully use the code below:

<asp:xml runat="server" id="myXMLTag" DocumentSource="myXML.xml"
TransformSource="myXSL.xslt" />

or

<asp:xml runat="server" id="myXMLTag" />

<script runat=server language="c#">
void Page_Load(Object sender, EventArgs e)
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(xmlPath);

XslTransform xslTr = new XslTransform();
xslTr.Load(xslPath);

myXMLTag.Document = xmlDoc;
myXMLTag.Transform = xslTr;
}

</script>
Now I must send the parameter to my XSL. How can I do it?

Thanx
Eli
Nov 12 '05 #1
4 3540
Eli wrote:
Now I must send the parameter to my XSL. How can I do it?


Take a look at TransformArgumentList property of the asp:xml control.

--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com
Nov 12 '05 #2
Eli
I didn't find a TransformArgumentList property in the asp:xml control.

"Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Eli wrote:
Now I must send the parameter to my XSL. How can I do it?


Take a look at TransformArgumentList property of the asp:xml control.

--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com

Nov 12 '05 #3
Eli wrote:
I didn't find a TransformArgumentList property in the asp:xml control.


http://msdn.microsoft.com/library/de...tlisttopic.asp
--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com
Nov 12 '05 #4
Eli
Sorry. You are right. I checked, it works greate

"Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in message
news:OA*************@TK2MSFTNGP10.phx.gbl...
Eli wrote:
I didn't find a TransformArgumentList property in the asp:xml control.

http://msdn.microsoft.com/library/de...tlisttopic.asp --
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com

Nov 12 '05 #5

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

Similar topics

1
2004
by: fjlpf | last post by:
In visual c++, I can send parameter to a new thread when createThread(). But in C#, how can I send parameter?
5
4767
by: Philippe Bertrand | last post by:
Using C#, I want to send a byte array to an unmanaged function with the minimum amount of copies. The array is input only and won't be modified (its copied on the unmanaged side). I'm currently...
1
2203
by: BigAbility | last post by:
there is a execution file with some parameter which is title property . this file is a windows form file and also exe file . Not DLL file. i'd like to execute it another program. when another...
7
7715
by: moondaddy | last post by:
I have a user control being used instead of a frame page. when the user clicks on a menu item I need to send the ID (integer value) of that menu as a parameter in the postback of the user control...
5
4140
by: sincethe2003 | last post by:
Hi, in the following example: ----------- <asp:HyperLinkColum HeaderText="Select an Item" DataNavigateUrlField="IntegerValue" DataNavigateUrlFormatString="detailspage.aspx?id={0}"...
2
2527
by: louise raisbeck | last post by:
hi, if i cause the onclick event to fire with an ImageButton I can send CommandArgument which I find really handy to grab some relevant value (which means i can reuse code for many buttons and...
6
3842
by: Thomas | last post by:
hello, i am searching for a while to use net send in vb.net without using the commandline net send... is there an api, with an example... i know that there is the possib. to send such messages...
0
2218
by: Alexiel | last post by:
Hi, i have a problem, I have a Java Client and i call my webservice on ..NET. This run perfectly just except when i send parameters don't work fine. I send my code : This is my java...
5
2463
by: RG | last post by:
I have an aspx web pages which interacts with an asmx service. The calls to web service are done via Javascript. The asmx service method has the following parameters: public string...
0
2911
by: pisgasys | last post by:
Hi, I need to send xml file as a parameter to SQL stored procedure from Access VBA form.. I wrote code that handle sending parameters from a textbox input.. but if I need to send xml file, what...
0
7242
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
7138
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
7423
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...
0
7510
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
5668
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,...
1
5066
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...
0
3225
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...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
447
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...

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.