473,566 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

xslt, xml, and web controls

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?

Nov 19 '05 #1
2 1424
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...

Nov 19 '05 #2
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.

Nov 19 '05 #3

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

Similar topics

0
1456
by: Mike | last post by:
I'm generating an XSLT document programatically in VB.Net. I'm then trying to apply that XSLT against a cXML document to generate my own internally developed XML document. I'm using RichTextBox controls to dump out the XSLT, cXML and internal XML. The following code works fine in Visual Studio 2002. However, after upgrading to VS 2003,...
5
7619
by: Fred | last post by:
Not much expertise on XSLT and trying to understand it's uses when creating apps in VS.NET? If I wanted flexibility on the UI (View aspect of M.V.C.): - How does it compare with creating business components that can be consumed by WebForms, WinForms, mobile devices, etc? Is it even fair to compare the such technologies? - How about for...
0
1466
by: suzy | last post by:
hi, i am new to .net. Currently i am writing a page that needs to contain several controls. i am using a place holder to add controls to the page one-by-one. is this the best way? i have a problem with this though... i have a xslt file which transforms some xsl into a table of data, but how do i add this table to the placeholder? ...
0
952
by: nospam | last post by:
I am looking for some feedback, experiences, or design patterns with respect to implementing a branding system (or at least a brandable web application) in ASP.NET. Some questions that arose in my investigation thus far are: 1. What parts of the applications should be customizable? Which should not be? Where is the balance between a customer's...
1
2549
by: Felipe Garcia | last post by:
how can i use asp.net web server controls with xslt ? the problem is that we have an solution that was built with asp + xslt, and we need to convert the solution to asp.net therefore all of the controls used inside the application will need to be converted to asp.net web server controls. thanks ie: <?xml version="1.0" encoding="UTF-8" ?>...
0
895
by: CJ de Vos | last post by:
Hi, I'm using XML and XSLT to format my HTML. After a postback I recreate all controls as soon as possible (OnInit and after the LoadViewstate). After the recreation all events are handled correctly. However, some events make adjustments to the XML. Because of this changed XML I need to recreate all controls again using the XSLT. This works....
6
476
by: Scott Zabolotzky | last post by:
I have the following XML sample: <Component Name="A"> <Param Name="OptionEnabled" DataType="boolean"> <Default>true</Default> </Param> <Param Name="Size" DataType="unsignedInt"/> <Param Name="Lifetime" DataType="unsignedInt"> <Default>5</Default> </Param>
9
1773
by: daph4ntom | last post by:
Right, I need some some views on the pros and cons of using XSLT versus ASP.NET 2.0 for the Presentation layer of an app. My company are looking at creating multiple sites and multi lingual support going forward... I have looked at Chris Lovetts post...
2
1275
by: MichaelRKramer | last post by:
Hi, I'm new to dotnet 2.0, but I'm an expert in asp 3 or classic asp. Most of my sites are all done with XSLT and ASP which basically writes XMLs. Now I'm reading about the new cool stuff in visual studio 2005. How does VS 2005 or .net 2.0 work with XSLT's? Is what I've been doing the best practice or a dumb ass move? Will I not be using...
0
7666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8108
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
925
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.