Get data from Access DB with asp.net and properly style it. RRS feed

  • Question

  • User878277512 posted

    I'm new in asp.net coding and I'm practicing in predesigned html templates in order to understand the nature of the code (Eventually, i don't know if that's a good idea). 
    So i have the code below and i'd like to insert the data of the DB (like itemname, image, descr, price) in the specified fields of the div (I have highlighted where i want them to be placed. I also want a new item to be auto generated when i insert new data to the DB.

    If someone could help me on that i would appreciate it. If it's possbile though.

    If you don't understand something as for my question feel free to ask!

    Thank you, in advance!

    <div class="b-items__cars">
                                ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                                SelectCommand="SELECT * FROM [products]">
                            <div class="b-items__cars-one wow zoomInUp" data-wow-delay="0.5s">
                                <div class="b-items__cars-one-img">
                                    <img src="media/237x202/toyota.jpg" alt='toyota'/>
                                    <span class="b-items__cars-one-img-type m-premium">PREMIUM</span>
                                <div class="b-items__cars-one-info">
                                    <form class="b-items__cars-one-info-header s-lineDownLeft">
                                        <h2>Toyota RAV4 Limited V6</h2>
                                        <input type="checkbox" name="check1" id='check1'/>
                                        <label for="check1" class="b-items__cars-one-img-check"><span class="fa fa-check"></span></label>
                                    <div class="row s-noRightMargin">
                                        <div class="col-md-9 col-xs-12">
                                            <p>A short product description</p>
                                            <div class="m-width row m-smallPadding">
                                                <div class="col-xs-6">
                                                    <option value="Red">Red</option>
                                                    <option value="Black">Black</option>
                                                    <option value="Silver">Silver</option>
                                                    <option value="White">White</option>
                                        <div class="col-md-3 col-xs-12">
                                            <div class="b-items__cars-one-info-price">
                                                <div class="pull-right">
                                                <a href="detail.html" class="btn m-btn">VIEW DETAILS<span class="fa fa-angle-right"></span></a>

    Monday, March 13, 2017 11:37 PM

All replies