473,394 Members | 2,020 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,394 software developers and data experts.

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 18 '05 #1
4 1192
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 18 '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 18 '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 18 '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 18 '05 #5

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

Similar topics

1
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
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
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
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
by: sincethe2003 | last post by:
Hi, in the following example: ----------- <asp:HyperLinkColum HeaderText="Select an Item" DataNavigateUrlField="IntegerValue" DataNavigateUrlFormatString="detailspage.aspx?id={0}"...
2
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
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
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.