gianitoo
asked on
help with this if statement
can you help me write this statement please?
varcholo= DataSet1.FieldValue("statu s", Container)
if varcholo=on then
<a href="http://www.indianayouthsoccer.org/2006site/coachingregistration.aspx?price=<%# DataSet1.FieldValue("cost" , Container) %>&eventdate=<%# DataSet1.FieldValue("event date", Container) %>
&location=<%# DataSet1.FieldValue("locat ion", Container) %>
&evencourse=<%# DataSet1.FieldValue("event name", Container) %>" ><img src="ROLLOVER/REGISTERNOW. gif" width="181" height="25" border="0" /></a>
else
registration is now closed
end if
varcholo= DataSet1.FieldValue("statu
if varcholo=on then
<a href="http://www.indianayouthsoccer.org/2006site/coachingregistration.aspx?price=<%# DataSet1.FieldValue("cost"
&location=<%# DataSet1.FieldValue("locat
&evencourse=<%# DataSet1.FieldValue("event
else
registration is now closed
end if
what you'r triyng to do?
what's you'r problem?
what's you'r problem?
ASKER
i dont know how to write the statement in dot.net
i i am good at classic asp only
pretty much if status=on then show that image with link
if status = full then
message= registration is now closed
i i am good at classic asp only
pretty much if status=on then show that image with link
if status = full then
message= registration is now closed
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30451: Name 'status' is not declared.
<%#status= DataSet1.FieldValue("Statu s", Container)
if status = "on" then
response.write("<a href="http://www.indianayouthsoccer.org/2006site/coachingregistration.aspx?price= DataSet1.FieldValue("cost" , Container) &eventdate= DataSet1.FieldValue("event date", Container)
&location= DataSet1.FieldValue("locat ion", Container)
&evencourse= DataSet1.FieldValue("event name", Container) " ><img src="ROLLOVER/REGISTERNOW. gif" width="181" height="25" border="0" /></a>")
elseif status = "full" then
response.write("<script>al ert('regis tration is now closed')</script>")
end if%>
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30451: Name 'status' is not declared.
<%#status= DataSet1.FieldValue("Statu
if status = "on" then
response.write("<a href="http://www.indianayouthsoccer.org/2006site/coachingregistration.aspx?price= DataSet1.FieldValue("cost"
&location= DataSet1.FieldValue("locat
&evencourse= DataSet1.FieldValue("event
elseif status = "full" then
response.write("<script>al
end if%>
but you don't using codebehind????
i don't understand what you'r doing
i don't understand what you'r doing
ASKER
no. i just paste this in the body exactly how i did it in classic asp.
how would you achieve this
how would you achieve this
ok... and what is status where you'r getting this value?
ASKER