ASP.NET...Code Beneath VB
----------------------------------
I have a dynamically generated checkbox list, I wanna make sure that a minimum of items have been selected to enable a button
I did CSS
CheckBoxlist1.Attributes.Add("onclick", "EnableButtton(Min)")
<script language="vbs">
Mycounter = 0
Function EanbleButton(minimum)
Mycounter = mycounter +1
If mycounter >= minimum then
Document.Form1.btnSave.disabled = false
End if
End function
</script>
---------
the thing is, no matter what the passed variable to the CSS is always 0 no matter what!, when I pass
----------------------------------
I have a dynamically generated checkbox list, I wanna make sure that a minimum of items have been selected to enable a button
I did CSS
CheckBoxlist1.Attributes.Add("onclick", "EnableButtton(Min)")
<script language="vbs">
Mycounter = 0
Function EanbleButton(minimum)
Mycounter = mycounter +1
If mycounter >= minimum then
Document.Form1.btnSave.disabled = false
End if
End function
</script>
---------
the thing is, no matter what the passed variable to the CSS is always 0 no matter what!, when I pass