Dymanically rendering html to an aspx form

  • Thread starter Thread starter Clive
  • Start date Start date
C

Clive

Hi,

I generate a serious of hidden fields that have Database
IDENTITY values as their value.

This HTML is contained in a String.

On my ASPX Page I then do a <%=strHTML%> in order to
write them out.

I know that this is not the correct way of doing this as
teh <%%> are only for backward compatability.


Any ideas? Maybe use a placeholder and parse the html out
to a placehodler.

Any replies/help/direction is much appreciated.

Thanks,
Clive.
 
Clive said:
Hi,

I generate a serious of hidden fields that have Database
IDENTITY values as their value.

And what happens next? You render this HTML ... and then what happens? This
will determine the "best" way to do this in ASP.NET.
 
Label generates <span> element. To output just the text use literal control.

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top