[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

Subject: RE: How to get the value selected by the User
From: "Bryan Rasmussen" <bry@xxxxxxxxxx>
Date: Fri, 8 Mar 2002 12:08:57 +0100
onclick get value
>   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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.