Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

syntax error, Please give solutions

syntax syntax error

  • Please log in to reply
5 replies to this topic

#1 bretlee

bretlee

    CC Lurker

  • Just Joined
  • Pip
  • 3 posts

Posted 11 February 2009 - 10:34 PM

<%

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

  • 0

#2 Termana

Termana

    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 971 posts

Posted 12 February 2009 - 05:08 AM

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).
  • 0

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


#3 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 12 February 2009 - 08:35 AM

you need an end if.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#4 Guest_arslan220_*

Guest_arslan220_*
  • Guest

Posted 27 July 2009 - 02:04 AM

you can go to goexpert forum for that or search on google.
  • 0

#5 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 27 July 2009 - 05:00 AM

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

#6 gokuajmes

gokuajmes

    CC Devotee

  • Senior Member
  • PipPipPipPipPipPip
  • 483 posts

Posted 04 March 2010 - 08:00 AM

well as per your code here is the mistake
if rsPaging("userReceiveSalmagundi")=1

try this now

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

  • 0





Also tagged with one or more of these keywords: syntax, syntax error

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download