473,386 Members | 1,790 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,386 software developers and data experts.

asp button in xsl

Hi,
I was wondering how you include an asp.net button inside an xsl transform
file.

I want to put a button next to each entry when i style my xml data.

Thanks in advance,

Simon

Nov 18 '05 #1
3 1569

Hi Simon,

I think one way to do this is would be to escape the "<" character;

<xsl:text disable-output-escaping="yes">
<asp:button id="mybutton" runat=server></asp:button>
</xsl:text>

and announce this as an aspx file.

I did similiar things to create an xslt file with an xslt transformation and
it worked well. Can you inform me if the one above also works or not?

Hope this helps,

Ethem

"simon" wrote:
Hi,
I was wondering how you include an asp.net button inside an xsl transform
file.

I want to put a button next to each entry when i style my xml data.

Thanks in advance,

Simon

Nov 18 '05 #2
Nah it doesn't work...... Without the escaping disabled I get a namespace
error - so neither way seems to work

"Ethem Azun" <Et*******@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...

Hi Simon,

I think one way to do this is would be to escape the "<" character;

<xsl:text disable-output-escaping="yes">
<asp:button id="mybutton" runat=server></asp:button>
</xsl:text>

and announce this as an aspx file.

I did similiar things to create an xslt file with an xslt transformation
and
it worked well. Can you inform me if the one above also works or not?

Hope this helps,

Ethem

"simon" wrote:
Hi,
I was wondering how you include an asp.net button inside an xsl transform
file.

I want to put a button next to each entry when i style my xml data.

Thanks in advance,

Simon

Nov 18 '05 #3

Hi simon,

Yes you are right. I forgot about the namespace. I made a small search and
found one workaround for it but to me it's a bit ugly. Simply put, you write
a namespace for asp and then remove it on code after the transformation.
Here's the link if you want to take a look;

http://www.devarticles.com/c/a/ASP.N...s-Using-XML/2/

Ugly ugly ugly !!! There should be a better way to do this. Maybe you should
ask it also on the msdn/xslt newsgroup.

Can you notify here also if you find a solution ?

Thanks,

Ethem

"simon" wrote:
Nah it doesn't work...... Without the escaping disabled I get a namespace
error - so neither way seems to work

"Ethem Azun" <Et*******@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...

Hi Simon,

I think one way to do this is would be to escape the "<" character;

<xsl:text disable-output-escaping="yes">
<asp:button id="mybutton" runat=server></asp:button>
</xsl:text>

and announce this as an aspx file.

I did similiar things to create an xslt file with an xslt transformation
and
it worked well. Can you inform me if the one above also works or not?

Hope this helps,

Ethem

"simon" wrote:
Hi,
I was wondering how you include an asp.net button inside an xsl transform
file.

I want to put a button next to each entry when i style my xml data.

Thanks in advance,

Simon


Nov 18 '05 #4

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

Similar topics

6
by: Skip Hollowell | last post by:
I am working on a menu bar for a site, and am using buttons in the bar (because the customer wants to use accessKeys for each selection, apparently it is too much work to click on them with a...
25
by: KK | last post by:
Hi, I am using history.go(-1) for implementing the back button functionality. Its working fine but with this exception. 1. The page which is having back button has some hyperlinks on it. ...
3
by: Zürcher See | last post by:
Someone has implemented a Datagrid Button for the Windows.Form?
18
by: jrhoads23 | last post by:
Hello, I am trying to find a way to tell if an .NET windows forms Button (System.Windows.Forms.Button) is "depressed" (pushed down). For my application, I can not use a check box control set to...
18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.