Re: Why use <%= %> ?

From: Alan Silver (alan-silver_at_nospam.thanx)
Date: 01/24/05


Date: Mon, 24 Jan 2005 18:40:45 +0000


>There are controls which let you render text or even html inside a tag, but
>I don't think there are any that let you define the attributes via
>strings...even if they did, it would be the same as using <%= %> as you
>wouldn't be able to program against it.

Why not? If you had a control that produced an attribute, you could
program against it. I can see that it would be the same as using <%=%>,
except that the code would be written in a more ASP.NET way, using
controls and setting them in the code block, rather than inserting code
in the HTML section, which is more of a Classic ASP approach.

-- 
Alan Silver
(anything added below this line is nothing to do with me)


Relevant Pages

  • Re: create html from flat file
    ... I want control over the html pages ie ... I was thinking maybe the flat file could use xml. ... a template file to indicate the controls that should appear on each ... create, html, xml, dynamic, template etc results in million+ hits. ...
    (comp.lang.php)
  • Re: create html from flat file
    ... I want control over the html pages ie ... I was thinking maybe the flat file could use xml. ... a template file to indicate the controls that should appear on each ... create, html, xml, dynamic, template etc results in million+ hits. ...
    (comp.lang.php)
  • Re: create html from flat file
    ... I want control over the html pages ie ... I was thinking maybe the flat file could use xml. ... a template file to indicate the controls that should appear on each ... create, html, xml, dynamic, template etc results in million+ hits. ...
    (comp.lang.php)
  • Re: Can a control produce html?
    ... the user controls HTML is not being grabbed. ... you have the problem that you want to fill the textarea on ... John Saunders ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Question about hiding form controls
    ... > ASP.NET will not render the HTML for that control. ... therefore to set all of the form controls to hidden when the page loads ... then had an selected item changed event on the drop down box - could I use ...
    (microsoft.public.dotnet.framework.aspnet)