• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

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
0
gianitoo
Asked:
gianitoo
  • 4
  • 4
1 Solution
 
gianitooAuthor Commented:
please help??????
0
 
Elvio Lujan.Net Senior DeveloperCommented:
what you'r triyng to do?
what's you'r problem?
0
 
gianitooAuthor Commented:
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
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Elvio Lujan.Net Senior DeveloperCommented:
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
0
 
gianitooAuthor Commented:
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%>
0
 
Elvio Lujan.Net Senior DeveloperCommented:
but you don't using codebehind????
i don't understand what you'r doing
0
 
gianitooAuthor Commented:
no.   i just paste this in the body  exactly how i did it in classic asp.

how would you achieve this
0
 
Elvio Lujan.Net Senior DeveloperCommented:
ok... and what is status where you'r getting this value?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now