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)
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
|
|
|
|
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)
I don't think you need the "<" in front of disabled.
|
|
|
|
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)
This also didnot work </button> <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") %> >
|
|
|
|
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)
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
|
|
|
|