xslt, xml, and web controls

S

Stephen

I have a little predicamnet. I have two xml controls on my page. Both
are menus for my site. The first (Category) needs to set the data
source of the other xml control. To do this I created an xslt file
that generates the value of each item in the first xml file as
hyperlink. Easy enough. Next I needed the hyperlink to execute C#
code in order to load the second xml control with the appropriate xml
file. I placed a hidden button on the page and used the javascript
onclick to click the button. This worked for html controls but not for
..net web controls. The reason I need a .net control is because I have
to pass a command arg to the event so the code knows which xml file to
load based on the selection the user makes in the category xml menu.
Anyway, it seems like I am trying to traverse across four different
technologies to accomplish this, html, xslt/xml, javascript, and
finally .Net. I can get it close, but without being able to pass a
parameter from the xslt-generated hyperlink to the c# code it won't
work for me. Any suggestions?
 
S

Stephen

Well. It turned out that instead of using the xml web control for my
first (category) xml menu, I opted for a datalist bound to the xml
file, which gave me much more control...
 
S

Stephen

Well. It turned out that instead of using the xml web control for my
first (category) xml menu, I opted for a datalist bound to the xml
file, which gave me much more control...

Someday it would be nice if this control (xml) could mimic some of the
properties of the datagrid and datalist, with column selection,
templates, etc... But then again why not just use the datagrid?

oh well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top