[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.buildingcontrols

Expresion Expected Error - VS 2005 - Migrated from VS 2003

John Banks

1/25/2007 8:14:00 PM

I have an asp.net project that I have migrated to VS 2005. The product
had zero errors in vs2003 and for the most part functions properly in
2005 except for one complicated page where I am receiving an Expression
Expected error on some very simplistic code. Please forgive the fact
that the code did not format properly below: I get the error on the
<% If statement line. There is no Line continuation here.

<TD style="HEIGHT: 23px" colSpan="3">
<% If CurrentBICP.Id =OD OrElse (CurrentBICP.Suspended And
CurrentBICP.CurrentVersionNo = 1) OrElse
DataBinder.Eval(CurrentBICP.Type, TypeQuote) Then%>
<asp:CheckBox id="cbxPropertyAfforded" runat="server"
Checked="True" />
<% Else %>
<% If YesNo2Bool(CurrentBICP.PropertyAfforded) Then %>
<img src="<%#= cCheckBoxCheckedImage %>"/>
<% Else %>
<img src="<%#= cCheckBoxUncheckedImage %>"/>
<% End If %>
<% End If %>
</TD>

Does anyone have any ideas?
5 Answers

Nathaniel Greene

1/26/2007 2:20:00 AM

0

Have you tried removing the nested else statement to see which If statement
it is?
If the error does not go away remove the whole Else clause
And if that doesnt work try removing all but one of the If conditions
Then slowly add them back to see which one is causing the problem.

"John Banks" wrote:

> I have an asp.net project that I have migrated to VS 2005. The product
> had zero errors in vs2003 and for the most part functions properly in
> 2005 except for one complicated page where I am receiving an Expression
> Expected error on some very simplistic code. Please forgive the fact
> that the code did not format properly below: I get the error on the
> <% If statement line. There is no Line continuation here.
>
> <TD style="HEIGHT: 23px" colSpan="3">
> <% If CurrentBICP.Id =OD OrElse (CurrentBICP.Suspended And
> CurrentBICP.CurrentVersionNo = 1) OrElse
> DataBinder.Eval(CurrentBICP.Type, TypeQuote) Then%>
> <asp:CheckBox id="cbxPropertyAfforded" runat="server"
> Checked="True" />
> <% Else %>
> <% If YesNo2Bool(CurrentBICP.PropertyAfforded) Then %>
> <img src="<%#= cCheckBoxCheckedImage %>"/>
> <% Else %>
> <img src="<%#= cCheckBoxUncheckedImage %>"/>
> <% End If %>
> <% End If %>
> </TD>
>
> Does anyone have any ideas?
>

jdlwright

1/27/2007 3:49:00 AM

0

I could be wrong - but shouldn't this

<%#=

be, either

<%#

or

<%=

?

I've always used <%# but I guess it could be the same as <%=.

May be the problem?

Jim

On Jan 25, 12:13 pm, John Banks <jbank...@hotmail.com> wrote:
> I have an asp.net project that I have migrated to VS 2005. The product
> had zero errors in vs2003 and for the most part functions properly in
> 2005 except for one complicated page where I am receiving an Expression
> Expected error on some very simplistic code. Please forgive the fact
> that the code did not format properly below: I get the error on the
> <% If statement line. There is no Line continuation here.
>
> <TD style="HEIGHT: 23px" colSpan="3">
> <% If CurrentBICP.Id =OD OrElse (CurrentBICP.Suspended And
> CurrentBICP.CurrentVersionNo = 1) OrElse
> DataBinder.Eval(CurrentBICP.Type, TypeQuote) Then%>
> <asp:CheckBox id="cbxPropertyAfforded" runat="server"
> Checked="True" />
> <% Else %>
> <% If YesNo2Bool(CurrentBICP.PropertyAfforded) Then %>
> <img src="<%#= cCheckBoxCheckedImage %>"/>
> <% Else %>
> <img src="<%#= cCheckBoxUncheckedImage %>"/>
> <% End If %>
> <% End If %>
> </TD>
>
> Does anyone have any ideas?

Jeff Lait

7/23/2008 2:05:00 PM

0

On Jul 23, 7:56 am, Adam White <spud...@iinet.net.au> wrote:
>
> Much like /Rogue/. Would Rogue have been *Rogue* if it weren't sometimes
> nasty and unfair? If every game had an equal chance of success, why not
> play solitaire?

Interesting comment since for some forms of solitaire, and some deals
of the deck, the game can be unwinnable.
--
Jeff Lait
(POWDER: http://www.zincland....)

zaimoni

7/23/2008 3:50:00 PM

0

On Jul 23, 5:19 am, David Ploog <pl...@mi.fu-berlin.de> wrote:
> On Tue, 22 Jul 2008, Antoine wrote:
> > On Jul 23, 12:04 pm, awhite <spud...@iinet.net.au> wrote:
> >> Both have their merits - Iron has no skills apart from attributes, and is
> >> extremely fun. Steam has skills up the ying-yang, and is extremely fun.
> >> Crawl has skills BUT IS BRUTAL AND THEN YOU DIE.
>
> > In all fairness, I hear the brutality and death of Crawl is mixed with
> > a certain amount of fun, too :)
>
> I hope so :)
>
> This seems to be a good thread to ask, as there are banders in here: What
> is the risk of death (assuming conversative and optimal play)? Can you
> almost entirely avoid it?

The catch with *bands (speaking specifically of V and Heng, Heng being
a Z-variant) is that conservative play is *not* optimal once one
approaches stat-gain.

I suppose, if the V RNG were replaced with a save-stated Mersenne
Twister, that it would be Borgly possible to wait for enough items to
be generated with object-depth 127 on DL 1 and then proceed. In
practice, the V RNG starts going heavily correlated for pairs of
events whose cumulative theoretical probability is less than 1/27 or
so; I doubt that the needed ego items/artifacts would happen fast
enough to save the Borg. (Very consistent 2% alpha failures, the
paired event of probability 1/n when checked for 4n times fails to
happen far more than (1/e)^4 ~ 1.83% of the time; tested with save-
scummed enchanting stacks to study the severity of this exploit
[awful, made far more inconvenient in Zaiband 3.0.9 alpha]).

In practice, the key V strategy seems to be: Never, ever permit the
theoretical maximum damage to be enough to kill in one player turn.
* That means the Detect Traps effect is critical.
* Go as deep as possible consistent with this. This is a bit deeper
with Autoscum off. Remember that Teleport as an escape doesn't work
well starting near stat-gain.
* Some effort to minimize turncount is required because arriving in
LoS of a monster group with inadequate area-effect attacks, requires
immediate escape. Also, minimizing monster restocking becomes
important around DL20.

V actually allows the player to enact this, but gives the player
*much* more room than NetHack to make strategic errors that
inobviously make the above impossible.

> If so (like Nethack), then this may be the basic difference: while Crawl
> is not nearly as deadly as hyped to be (I won't complain :),

Certainly not on DL1-3 for the easy classes. For SSCrawl 0.3.4, the
only real threat to a properly played MDFi is Sigmund.

zaimoni

7/23/2008 5:33:00 PM

0

On Jul 23, 10:31 am, David Ploog <pl...@mi.fu-berlin.de> wrote:
> On Wed, 23 Jul 2008, Adam White wrote:
> > On Wed, 23 Jul 2008 12:19:53 +0200, David Ploog wrote:
> >> What is the risk of death (assuming conversative and optimal play)? Can
> >> you almost entirely avoid it?
>
> > Assuming optimal play, then it seems "yes". On r.g.r.a we've had a recent
> > run of blow-by-blow posts. Eddie Grove is a bit of a demigod (very
> > opinionated, but a superb player nonetheless) and won V in very short
> > time indeed.
>
> It is one thing to have one player who mastered the game, and the other to
> just be paranoid/cautious/spoiled enough in order to achieve this. Could
> Eddie's success be repeated?

Eddie is actually the second such master. I think Timo has a higher
win rate, but has problems playing anywhere near as fast as Eddie.