How to create a dynamic div using database data

Asked

Viewed 322 times

1

I have an administration page called (admin.aspx) with a table that has data that I will retrieve from my SQL Server database. My idea is on this page I select the data I need and by clicking a button, create a dynamic div on the page (filmes.aspx) with the data I selected on the previous page only that I am not able to do. The layout of the div I have in mind is as follows:

<div class="row">
  <div class="col-md-7">
    <a href="portfolio-item.html">
      <img class="img-responsive img-hover" src="http://placehold.it/700x300" alt="">
    </a>
  </div>
  <div class="col-md-5">
    <h3>Titulo</h3>
    <h4>Ano de Lançamento</h4>
    <p>Sinopse</p>
    <a class="btn btn-primary" href="portfolio-item.html">Mais detalhes</i></a>
  </div>
</div>

That is, from the page (admin.aspx) i want to seek the values of the title, release year, synopsis and replace in the div I have above as an example. All this happening dynamically, IE, the data stay on the page always not disappearing when I finish the program and also intend to continue to add Divs without replacing the data of the previously created.

  • Are you using ADO.net, Entity, Nhibernate? What are you using for databases?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.