I need to perform some of Client side manipulation:
I have a 4 checkboxes with following them 4 FileUpload
HTML controls. What I need to do is to prevent user from
uploading file by using 4th controll if 3rd is not used
and itc.,so I want to disable number 2,3 and 4 untill user
clicked 1.So,
by clicking checkbox1 -> FileUpload2 become available
by clicking checkbox2 -> FileUpload3 become available
by clicking checkbox3 -> FileUpload4 become available
I can't use server side CheckedChanged event becouse I
don't want to send any data to server yet,so I need to
implement JavaScript together with my ASP controlls.
The question is How to do so?
It suppose to looks like this:
<asp:checkbox id="CheckBox1" runat="server" Text="Upload
picture1:"
OnCheckedChanged="javascript:document.form1.FileUp load2.ena
ble"></asp:checkbox>
<input id="FileUpload1" type="file" name="FileUpload"
runat="server" width="300">
<asp:checkbox id="CheckBox2" runat="server" Text="Upload
picture1:"
OnCheckedChanged="javascript:document.form1.FileUp load3.ena
ble"></asp:checkbox>
<input id="FileUpload2" type="file" name="FileUpload"
runat="server" width="300">
<asp:checkbox id="CheckBox3" runat="server" Text="Upload
picture1:"
OnCheckedChanged="javascript:document.form1.FileUp load4.ena
ble"></asp:checkbox>
<input id="FileUpload3" type="file" name="FileUpload"
runat="server" width="300">
It is does not works,but may-be someone could help me?
Thanks in advansed.
Alex.