1000kisoen
IS-IT--Management
hi,
I have some problem with my update form particular a checkbox
funtionality is works like this
1> visible/hide some listbox's ( javascript show/ hide)
2> place a text in a textbox (javascript)
so when update a record I stumble with some problems
what's is wrong with this code
error code is complition error "end" statement expected but where...
<input name="Service_Request" type="checkbox"
value="<%=(Update.Fields.Item("Service Request").Value)%>"
<%
if (Update.Fields.Item("Service Request").Value) = -1 then
response.write "Checked"
elseif (Update.Fields.Item("Service Request").Value) = 0 then
response.write ""
End if
%>
<%
if (Update.Fields.Item("Service Request").Value) = -1 then
response.write "show();"
else if (Update.Fields.Item("Service Request").Value) = 0 then
response.write "hide();"
end if
%>>
this is my previous code and it works well ofcourse without update form
<input name="Service_Request" type="checkbox" onClick="show();"
value="<%=(Update.Fields.Item("Service Request").Value)%>"
<%
if (Update.Fields.Item("Service Request").Value) = -1 then
response.write "Checked"
elseif (Update.Fields.Item("Service Request").Value) = 0 then
response.write ""
End if
%>>
please help out with this one
thx kisoen
I have some problem with my update form particular a checkbox
funtionality is works like this
1> visible/hide some listbox's ( javascript show/ hide)
2> place a text in a textbox (javascript)
so when update a record I stumble with some problems
what's is wrong with this code
error code is complition error "end" statement expected but where...
<input name="Service_Request" type="checkbox"
value="<%=(Update.Fields.Item("Service Request").Value)%>"
<%
if (Update.Fields.Item("Service Request").Value) = -1 then
response.write "Checked"
elseif (Update.Fields.Item("Service Request").Value) = 0 then
response.write ""
End if
%>
<%
if (Update.Fields.Item("Service Request").Value) = -1 then
response.write "show();"
else if (Update.Fields.Item("Service Request").Value) = 0 then
response.write "hide();"
end if
%>>
this is my previous code and it works well ofcourse without update form
<input name="Service_Request" type="checkbox" onClick="show();"
value="<%=(Update.Fields.Item("Service Request").Value)%>"
<%
if (Update.Fields.Item("Service Request").Value) = -1 then
response.write "Checked"
elseif (Update.Fields.Item("Service Request").Value) = 0 then
response.write ""
End if
%>>
please help out with this one
thx kisoen