in addition to the last post..
  if it was JUST this line, making it a literal wouldn't be a problem.   The
issue is the '2nd' IF..THEN has about 75 lines of HTML to hide if the
condition is false.. 
  I'm not looking forward to hacking that HTML into bunch of
response.writes.
 

  _____  

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian Forbes -
ITD
Sent: Wednesday, April 20, 2005 6:12 AM
To: [email protected]
Subject: RE: [ASP] Code blocks are not supported in this context. (ASP.NET )


> Line 51 - 57
> <% 
> IF LEN(ColumnCheck) = 0 THEN
>   Response.Write ("<TD style='WIDTH: 50%;'>")
> ELSE
>   Response.Write("<TD>")
> END IF
> %>

Don't think you can inject code like that in asp.net the way you could in
asp.  You need to place a server control there and on the page load event
have your code update the content.  Something like

<asp:Literal ID="MyTD" runat="server"/>

Then in the Page_onLoad event;

If len(ColumnCheck) = 0 then
      MyTD.Text = "<TD style='WIDTH: 50%;'>"
Else
      MyTD.Text = "<td>"
End if

Something like that anyway, unless someone can think of something better.


The contents of this email and any attachments are sent for the personal
attention
of the addressee(s) only and may be confidential.  If you are not the
intended
addressee, any use, disclosure or copying of this email and any attachments
is
unauthorised - please notify the sender by return and delete the message.
Any
representations or commitments expressed in this email are subject to
contract. 

ntl Group Limited



---------------------------------------------------------------------    
Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post       : [email protected]
Subscribe  : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 



  _____  

Yahoo! Groups Links


*       To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
  

*       To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>

  

*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> . 




[Non-text portions of this message have been removed]






---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to