Forums
This topic is locked
Newbie: Can I do this?
Posted 27 Apr 2002 09:29:34
1
has voted
27 Apr 2002 09:29:34 Tony Chronopoulos posted:
Does anyone know how I can do something like this: ???
<pre id=code><font face=courier size=2 id=code>
<%
If Session("id"


<a href="edit_emplois.asp?<%=rsEmplois.Fields.Item("jobs_id"

End If %>
</font id=code></pre id=code>
Thanks
___________________
Lunch is on me! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Replies
Replied 27 Apr 2002 12:22:36
27 Apr 2002 12:22:36 Viktor Farcic replied:
Do what? Isn't it already done?
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Does anyone know how I can do something like this: ???
<pre id=code><font face=courier size=2 id=code>
<%
If Session("id"
= "<%=(rsEmplois.Fields.Item("jobs_posterID"
.Value)%>" Then
<a href="edit_emplois.asp?<%=rsEmplois.Fields.Item("jobs_id"
.Value%>"><img src="images/global/icon_edit_topic.gif" width="15" height="15" alt="Éditer" border="0"></a> <a href="#"><img src="images/global/icon_del_topic.gif" width="15" height="15" alt="Supprimer" border="0"></a>
End If %>
</font id=code></pre id=code>
Thanks
___________________
Lunch is on me! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
TalkZone Manager
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Does anyone know how I can do something like this: ???
<pre id=code><font face=courier size=2 id=code>
<%
If Session("id"


<a href="edit_emplois.asp?<%=rsEmplois.Fields.Item("jobs_id"

End If %>
</font id=code></pre id=code>
Thanks
___________________
Lunch is on me! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
TalkZone Manager
Replied 28 Apr 2002 16:41:37
28 Apr 2002 16:41:37 Tony Chronopoulos replied:
No, it gives me an error. Says:
Error Type:
Microsoft VBScript compilation (0x800A03F9)
Expected 'Then'
/partenaire/TMPyuehmva8qm.asp, line 114, column 47
If Session("id"
= "<%=(rsEmplois.Fields.Item("jobs_posterID"
.Value)
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Do what? Isn't it already done?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Edited by - bloodtrain on 28 Apr 2002 16:45:14
Error Type:
Microsoft VBScript compilation (0x800A03F9)
Expected 'Then'
/partenaire/TMPyuehmva8qm.asp, line 114, column 47
If Session("id"


<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Do what? Isn't it already done?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Edited by - bloodtrain on 28 Apr 2002 16:45:14
Replied 28 Apr 2002 18:34:34
28 Apr 2002 18:34:34 Matthijs Horsman replied:
Hai bloodtrain,
You are nesting your ASP tags... Try something like:
<b><%
If Session("id"
= (rsEmplois.Fields.Item("jobs_posterID"
.Value) Then
%>
</b>
<a href="edit_emplois.asp?<%=rsEmplois.Fields.Item("jobs_id"
.Value%>"><img src="images/global/icon_edit_topic.gif" width="15" height="15" alt="Éditer" border="0"></a>
<b><% else %></b>
<a href="#"><img src="images/global/icon_del_topic.gif" width="15" height="15" alt="Supprimer" border="0"></a>
<b><% End If %></b>
Dodn't test it, but this is the way it should look i think...
Good luck
Grrrr
Matthijs
----------------
UD4/WY2K/IIS/ASP-VB
Edited by - matthijshorsman on 28 Apr 2002 18:35:53
You are nesting your ASP tags... Try something like:
<b><%
If Session("id"


%>
</b>
<a href="edit_emplois.asp?<%=rsEmplois.Fields.Item("jobs_id"

<b><% else %></b>
<a href="#"><img src="images/global/icon_del_topic.gif" width="15" height="15" alt="Supprimer" border="0"></a>
<b><% End If %></b>
Dodn't test it, but this is the way it should look i think...
Good luck
Grrrr
Matthijs
----------------
UD4/WY2K/IIS/ASP-VB
Edited by - matthijshorsman on 28 Apr 2002 18:35:53
Replied 28 Apr 2002 20:49:32
28 Apr 2002 20:49:32 Tony Chronopoulos replied:
Cool. thanks man, I think it worked. ehhe.. (not 100% sure cuz I'm modifying my database).
I'm new at ASP (DB programming in general) so when I had the right idea and it wasn't working,
very stressing.. heheh.. I'm glad I'm somewhat getting the hand of this. <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Tony
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hai bloodtrain,
You are nesting your ASP tags... Try something like:
<b><%
If Session("id"
= (rsEmplois.Fields.Item("jobs_posterID"
.Value) Then
%>
</b>
<a href="edit_emplois.asp?<%=rsEmplois.Fields.Item("jobs_id"
.Value%>"><img src="images/global/icon_edit_topic.gif" width="15" height="15" alt="Éditer" border="0"></a>
<b><% else %></b>
<a href="#"><img src="images/global/icon_del_topic.gif" width="15" height="15" alt="Supprimer" border="0"></a>
<b><% End If %></b>
Dodn't test it, but this is the way it should look i think...
Good luck
Grrrr
Matthijs
----------------
UD4/WY2K/IIS/ASP-VB
Edited by - matthijshorsman on 28 Apr 2002 18:35:53
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
___________________
Lunch is on me! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
I'm new at ASP (DB programming in general) so when I had the right idea and it wasn't working,
very stressing.. heheh.. I'm glad I'm somewhat getting the hand of this. <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Tony
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hai bloodtrain,
You are nesting your ASP tags... Try something like:
<b><%
If Session("id"


%>
</b>
<a href="edit_emplois.asp?<%=rsEmplois.Fields.Item("jobs_id"

<b><% else %></b>
<a href="#"><img src="images/global/icon_del_topic.gif" width="15" height="15" alt="Supprimer" border="0"></a>
<b><% End If %></b>
Dodn't test it, but this is the way it should look i think...
Good luck
Grrrr
Matthijs
----------------
UD4/WY2K/IIS/ASP-VB
Edited by - matthijshorsman on 28 Apr 2002 18:35:53
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
___________________
Lunch is on me! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>