Condition to set a unique ID between 2 btns onClick

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ismailc
    New Member
    • Sep 2006
    • 200

    Condition to set a unique ID between 2 btns onClick

    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:Butto n">
    <xsl:attribut e name="id">___Su bmit</xsl:attribute>
    <xsl:attribut e name="onClick"> FG1012Save.chec ked=true;</xsl:attribute> <xsl:attribut e name="runat">se rver</xsl:attribute>
    <xsl:attribut e name="text">Sav e</xsl:attribute>
    <xsl:attribut e name="CommandNa me">Submit</xsl:attribute>
    </xsl:element>

    <xsl:element name="asp:Butto n">
    <xsl:attribut e name="id">___Su bmit</xsl:attribute>
    <xsl:attribut e name="onClick"> FG1010Done.chec ked=true;</xsl:attribute>
    <xsl:attribut e name="runat">se rver</xsl:attribute>
    <xsl:attribut e name="text">Don e</xsl:attribute>
    <xsl:attribut e name="CommandNa me">Submit</xsl:attribute>
    </xsl:element>

    Please any ideas!

    Regards
Working...