I have a problem with a dynamic page that I am developing on ASP.net
The structure is from a "blog":
Each "post" is an HTML page with variables:
- [Title]
- [Date]
- [Description]
and finally I have the Read more ...
<article class='blogArticle'>
<article class='headerArticle'>[titulo]</article>
<article class='dataArticle'>[hora]</article>
<article class='desctArticle'>[descripcion]</article>
<a href='#'> Leer mas...</a> <br />
</article>
Each of these variables replaced them with the function Replace
of C # within a FOR
, where (previously hardcoded arrays string with each content Title, Date, Description)
But I do not know how to do with the Read more ...
How do I realize (dynamically) that Read more click the user, then show all the content of that post on another HTML page?
Another question I have is if it is convenient for me to hardcode the content in arrays String in codebehind of the page, for example:
string [] titulo = new string [5];
titulo[0] = "La importancia del juego en el desarrollo del niño";
titulo[1] = "El juego y la edad del niño";
titulo[2] = "Día del Juego: por el derecho de los niños a jugar";
titulo[3] = "Cómo aprenden los niños a través del juego";
titulo[4] = "Qué pueden aprender los niños jugando con los padres";
Or it suits me to save everything in a SQL database and bring everything in the method Page Load