/ Forside / Teknologi / Udvikling / ASP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
ASP
#NavnPoint
smorch 9259
Harlekin 1866
molokyle 1040
Steffanst.. 758
gandalf 657
smilly 564
gibson 560
cumano 530
MouseKeep.. 480
10  Random 410
fejl...
Fra : Mongoose


Dato : 11-04-03 23:25

Er der en der kan se fejlen i nedenstående;

Fejlen er

Expected end of statement

<% IF action = "add" THEN Response.Write
"admin_galleryUpdate.asp?action=addRS" ELSEIF action = "update" THEN
Response.Write "admin_galleryUpdate.asp?action=updateRS&PrimKey=" & RS("ID")
END IF %>



 
 
Martin_P (12-04-2003)
Kommentar
Fra : Martin_P


Dato : 12-04-03 00:22

On Sat, 12 Apr 2003 00:24:56 +0200, "Mongoose" <snipemode@mail.dk>
wrote:

<%
IF action = "add" THEN
Response.Write "admin_galleryUpdate.asp?action=addRS"
ELSEIF
action = "update" THEN
Response.Write "admin_galleryUpdate.asp?action=updateRS&PrimKey="
&RS("ID")
END IF
%>

Hvad med disse linieskift - virker det så ?


Torben Brandt (12-04-2003)
Kommentar
Fra : Torben Brandt


Dato : 12-04-03 00:45

Martin_P wrote:
> On Sat, 12 Apr 2003 00:24:56 +0200, "Mongoose" <snipemode@mail.dk>
> wrote:
>
> <%
> IF action = "add" THEN
> Response.Write "admin_galleryUpdate.asp?action=addRS"
> ELSEIF
> action = "update" THEN
> Response.Write "admin_galleryUpdate.asp?action=updateRS&PrimKey="
> &RS("ID")
> END IF
> %>
>
> Hvad med disse linieskift - virker det så ?

Nej, det skal være sådan her (linier er nummereret så de ikke ombrydes
automatisk):
1: IF action = "add" THEN
2: Response.Write "admin_galleryUpdate.asp?action=addRS"
3: ELSEIF action = "update" THEN
4: Response.Write
"admin_galleryUpdate.asp?action=updateRS&PrimKey="&RS("ID")
5: END IF

mvh Torben


Mongoose (12-04-2003)
Kommentar
Fra : Mongoose


Dato : 12-04-03 10:14

nope virker stadig ikke....



"Torben Brandt" <name@domain.invalid> wrote in message
news:3E97538A.9070905@domain.invalid...
Martin_P wrote:
> On Sat, 12 Apr 2003 00:24:56 +0200, "Mongoose" <snipemode@mail.dk>
> wrote:
>
> <%
> IF action = "add" THEN
> Response.Write "admin_galleryUpdate.asp?action=addRS"
> ELSEIF
> action = "update" THEN
> Response.Write "admin_galleryUpdate.asp?action=updateRS&PrimKey="
> &RS("ID")
> END IF
> %>
>
> Hvad med disse linieskift - virker det så ?

Nej, det skal være sådan her (linier er nummereret så de ikke ombrydes
automatisk):
1: IF action = "add" THEN
2: Response.Write "admin_galleryUpdate.asp?action=addRS"
3: ELSEIF action = "update" THEN
4: Response.Write
"admin_galleryUpdate.asp?action=updateRS&PrimKey="&RS("ID")
5: END IF

mvh Torben



Mongoose (12-04-2003)
Kommentar
Fra : Mongoose


Dato : 12-04-03 10:20

<FORM ACTION="<%IF action = "add" THEN Response.Write
"admin_galleryUpdate.asp?action=addRS" ELSEIF action = "update"
THENResponse.Write
"admin_galleryUpdate.asp?action=updateRS&PrimKey="&RS("ID") END IF %>
onsubmit="javascript:return checkRequired();" METHOD="POST" id="frmPicture"
name="frmPicture">





Torben Brandt (12-04-2003)
Kommentar
Fra : Torben Brandt


Dato : 12-04-03 13:16

Mongoose wrote:
> <FORM ACTION="<%IF action = "add" THEN Response.Write
> "admin_galleryUpdate.asp?action=addRS" ELSEIF action = "update"
> THENResponse.Write
> "admin_galleryUpdate.asp?action=updateRS&PrimKey="&RS("ID") END IF %>
> onsubmit="javascript:return checkRequired();" METHOD="POST" id="frmPicture"
> name="frmPicture">

Jamen, det er da klart, når du ikke bruger de linieskift jeg skrev...
Dette virker:

1: <FORM ACTION="<%
2: IF action = "add" THEN
3: Response.Write "admin_galleryUpdate.asp?action=addRS"
4: ELSEIF action = "update" THEN
5: Response.Write
"admin_galleryUpdate.asp?action=updateRS&PrimKey="&RS("ID")
6: END IF
7: %>" onsubmit="javascript:return checkRequired();" METHOD="POST"
id="frmPicture" name="frmPicture">


Torben


Mongoose (12-04-2003)
Kommentar
Fra : Mongoose


Dato : 12-04-03 20:39

Hej ...det var else if der skulle skilles ad ... så det funker nu ...takker
for hjælpen ...;0)


"Torben Brandt" <name@domain.invalid> wrote in message
news:3E98039B.3020606@domain.invalid...
Mongoose wrote:
> <FORM ACTION="<%IF action = "add" THEN Response.Write
> "admin_galleryUpdate.asp?action=addRS" ELSEIF action = "update"
> THENResponse.Write
> "admin_galleryUpdate.asp?action=updateRS&PrimKey="&RS("ID") END IF %>
> onsubmit="javascript:return checkRequired();" METHOD="POST"
id="frmPicture"
> name="frmPicture">

Jamen, det er da klart, når du ikke bruger de linieskift jeg skrev...
Dette virker:

1: <FORM ACTION="<%
2: IF action = "add" THEN
3: Response.Write "admin_galleryUpdate.asp?action=addRS"
4: ELSEIF action = "update" THEN
5: Response.Write
"admin_galleryUpdate.asp?action=updateRS&PrimKey="&RS("ID")
6: END IF
7: %>" onsubmit="javascript:return checkRequired();" METHOD="POST"
id="frmPicture" name="frmPicture">


Torben



Søg
Reklame
Statistik
Spørgsmål : 177551
Tips : 31968
Nyheder : 719565
Indlæg : 6408834
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste