Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 18th, 2008, 09:04 AM
Friend of Wrox
 
Join Date: Jan 2007
Posts: 115
Thanks: 2
Thanked 0 Times in 0 Posts
Default Condition to set a unique ID between 2 btns onClic

Hi, this is related to my previous post.
Don't know xsl at all, but I'm trying to create 2 btns instead of a 2 radio buttons with one btn.

Please help in building a condition in setting the ID, as it only submits with this ID "___Submit" & can't create 2 of the same ID as a get a duplicate.
Is there a way to build a condition onclick to set the ID


Code:
<xsl:element name="asp:Button">
<xsl:attribute name="id">___Submit</xsl:attribute>
<xsl:attribute
name="onClick">FG1012Save.checked=true;</xsl:attribute> <xsl:attribute name="runat">server</xsl:attribute>
<xsl:attribute name="text">Save</xsl:attribute>
<xsl:attribute name="CommandName">Submit</xsl:attribute>
</xsl:element>

<xsl:element name="asp:Button">
<xsl:attribute name="id">___Submit</xsl:attribute>
<xsl:attribute name="onClick">FG1010Done.checked=true;</xsl:attribute>
<xsl:attribute name="runat">server</xsl:attribute>
<xsl:attribute name="text">Done</xsl:attribute>
<xsl:attribute name="CommandName">Submit</xsl:attribute>
</xsl:element>

Please any ideas!

Regards






Similar Threads
Thread Thread Starter Forum Replies Last Post
generate unique id capri SQL Server 2000 1 April 6th, 2008 10:18 AM
Create Unique Id langer123 Classic ASP Basics 0 April 6th, 2005 01:27 PM
Creating a Unique ID for each row maxworlund SQL Server DTS 1 March 8th, 2005 09:33 PM
Getting Unique ID from Database Nicky_uk Classic ASP Databases 9 January 26th, 2005 04:45 PM
Generate unique ID when populating a table sroman SQL Server 2000 2 August 5th, 2003 03:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.