Client Side Buttons

Author Message
vodafone

  • Total Posts : 3
  • Scores: 0
  • Reward points : 0
  • Joined: 1/3/2008
  • Status: offline
Client Side Buttons Thursday, January 03, 2008 9:03 PM (permalink)
0
Original message moved by ebgreen
Reason : Moved to proper forum
Hi all,
I am using one client side button in my form.The code behind of the form has a public varriable
Action as Integer.If the varraible is 1 then the button has to be disabled else it has to be enabled.I am trying
like this but not working.Can some one help


button class="Btn" id="Button3" title="ALT-D" accessKey="D" onclick="Delete_onclick()"
                             type="button" >
                       <% If intAction = 1 then %>
                             <disabled="true" > 
                       <% Else %>
                             <disabled="false" > 
                       <%End If %> </button>
 
 
 

 
Thanks in advance
Dana
 
#1
    chris_cs

    • Total Posts : 97
    • Scores: 0
    • Reward points : 0
    • Joined: 10/10/2006
    • Status: offline
    RE: Client Side Buttons Thursday, January 03, 2008 9:59 PM (permalink)
    0
    I don't think you need the "<" in front of disabled.
     
    #2
      vodafone

      • Total Posts : 3
      • Scores: 0
      • Reward points : 0
      • Joined: 1/3/2008
      • Status: offline
      RE: Client Side Buttons Thursday, January 03, 2008 11:04 PM (permalink)
      0
      This also didnot work
       
                &nbsp;&nbsp;</button>&nbsp;&nbsp; <button class="Btn" id="Button3" title="ALT-D" accessKey="D" onclick="Delete_onclick()"
           type="button" <% if intAction=1 Then Response.write("disabled=true") Else Response.write("disabled=false") %> >&nbsp;&nbsp;
       
      #3
        mcds99

        • Total Posts : 519
        • Scores: 4
        • Reward points : 0
        • Joined: 2/28/2006
        • Status: offline
        RE: Client Side Buttons Friday, January 04, 2008 4:10 AM (permalink)
        0
        If this is ASP it's in the wrong area, it should be in the ASP forum.
         
         
        Sam

        Keep it Simple Make it Fun KiSMiF
         
        #4

          Online Bookmarks Sharing: Share/Bookmark

          Jump to:

          Current active users

          There are 0 members and 1 guests.

          Icon Legend and Permission

          • New Messages
          • No New Messages
          • Hot Topic w/ New Messages
          • Hot Topic w/o New Messages
          • Locked w/ New Messages
          • Locked w/o New Messages
          • Read Message
          • Post New Thread
          • Reply to message
          • Post New Poll
          • Submit Vote
          • Post reward post
          • Delete my own posts
          • Delete my own threads
          • Rate post

          2000-2012 ASPPlayground.NET Forum Version 3.9