Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I am getting the result through webmethod.

Now I want to bind the data in my Home.aspx page like title and images.
I am using like a repeater.
This is my code.

XML
<div class="art-left">
          <div class="article-sm-list">
            <ul>

              <li>
                <div class="article-sm">
                  <div class="art-sm-img"> <a href="#"><img src="images/small-article-img01.png" alt="art" /></a> </div>
                  <div class="art-sm-content"> <a href="#">Title</a>
                    <div class="art-sm-footer"> <a href="#"> <span><b>973K</b> SHARES/ <b>4</b> days ago</span></a> </div>
                  </div>
                </div>
              </li>

            </ul>
          </div>
        </div>


ajax and jquery like this
var count=50;
              $.ajax({
                    type: "POST",
                    contentType: "application/json; charset=utf-8",
                    url: "Home.aspx/GetBlogsInfo",
                    data: "{'count':'" + count + "'}",
                    dataType: "JSON",
                    async: true,
                    success: function (response) {
                    var res=response.d;
                    }
                    });


how to bind the data in success function.
need any html page? If I create html page my css styles applied or not?
Please help me
Thank you....
Posted
Comments
Mukesh Ghosh 8-Jul-14 3:45am    
Yes you need to add html page, also you can add css to that html or can write in Line that should work.
NagaRaju Pesarlanka 8-Jul-14 3:50am    
ok, thanks to respond my question,
I dont know how to create html page please give me code with above div data and assign the data to the div elements.
NagaRaju Pesarlanka 8-Jul-14 6:02am    
how to put html page into my home.aspx page which I already created.
because I have another functionalities in my home page.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900