Link to home
Start Free TrialLog in
Avatar of gianitoo
gianitoo

asked on

help with this if statement

               can you help me write this statement please?

 varcholo= DataSet1.FieldValue("status", Container)
  if varcholo=on  then

       <a href="http://www.indianayouthsoccer.org/2006site/coachingregistration.aspx?price=<%# DataSet1.FieldValue("cost", Container) %>&eventdate=<%# DataSet1.FieldValue("eventdate", Container) %>
&location=<%# DataSet1.FieldValue("location", Container) %>
&evencourse=<%# DataSet1.FieldValue("eventname", Container) %>" ><img src="ROLLOVER/REGISTERNOW.gif" width="181" height="25" border="0" /></a>

else
registration is now closed
end if
Avatar of gianitoo
gianitoo

ASKER

please help??????
Avatar of Elvio Lujan
what you'r triyng to do?
what's you'r problem?
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
ASKER CERTIFIED SOLUTION
Avatar of Elvio Lujan
Elvio Lujan
Flag of Argentina image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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("Status", Container)
if status = "on" then
response.write("<a href="http://www.indianayouthsoccer.org/2006site/coachingregistration.aspx?price= DataSet1.FieldValue("cost", Container) &eventdate= DataSet1.FieldValue("eventdate", Container)
&location= DataSet1.FieldValue("location", Container)
&evencourse= DataSet1.FieldValue("eventname", Container) " ><img src="ROLLOVER/REGISTERNOW.gif" width="181" height="25" border="0" /></a>")
elseif status = "full" then
response.write("<script>alert('registration is now closed')</script>")
end if%>
but you don't using codebehind????
i don't understand what you'r doing
no.   i just paste this in the body  exactly how i did it in classic asp.

how would you achieve this
ok... and what is status where you'r getting this value?