|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to get the value selected by the User
> I am displaying a dynamically created xml file in an aspx page.
>The xml file contains the dates of the current week.When the User clicks on
one of the dates,I
>want to get that value in the aspx page.
> Currently, I am trying to set an attribute value, at the OnClick of the
date element through an >msxsl:script function.But it doesn't seem to be
going into that function.
>Has anyone got any suggestions?
okay I'm supposing that you're using System.Xml.Xsl namespace, if so you
need to create an XsltArgumentList(), as follows
Dim Args as XsltArgumentList = new XsltArgumentList()
Args.AddParam("onclick","",myobject)
myobject is the string value you will be passing, for example if on the
onclick you reloaded the page with a querystring value
my.asp?myobject=click4
then the onclick parameter in your stylesheet would have a different value,
so if you have
<xsl:param name="onclick"/>
<xsl:template match="/">
<xsl:value-of select="$onclick"/>
</xsl:template>
you could pass in the info.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








