Jump to content

syntax error, Please give solutions

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
bretlee

bretlee

    Newbie

  • Members
  • Pip
  • 3 posts
<%

shtml="<tr><td><font size=""2"" face=""Verdana, Arial, Helvetica, sans-serif""><strong>Receive Salmagundi : </strong></font></td><td><input type=""checkbox"" name=""chkSalmagundi"" value=""1"" "& if rsPaging("userReceiveSalmagundi")=1 then Response.Write checked &" /></td></tr><tr>"
%>


i want that my page load this code will be run and i have got the output if
rsPaging("userReceiveSalmagundi") has value in database 1, then cheched. this is an asp page


error on the syntax of if()...

plz help

Edited by WingedPanther, 12 February 2009 - 08:34 AM.
add code tags


#2
Termana

Termana

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,057 posts
1. You need to put your code in code tags, the little # there on the post editor.
2. You need to post this in the ASP.NET section, it will more likely get answered properly there (a mod will probably move it anyway).

Interested in participating in community events?
Want to harness your programming skill and turn it into absolute prowess?
Come join our programming events!


#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,822 posts
you need an end if.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
Guest_arslan220_*

Guest_arslan220_*
  • Guests
you can go to goexpert forum for that or search on google.

#5
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Why would he go to another forum (which isn't even a good forum or active)?

#6
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
well as per your code here is the mistake
if rsPaging("userReceiveSalmagundi")=1 

try this now

 if((rsPaging("userReceiveSalmagundi"))==1)