I am trying to get literal data from database to display news on homepage
whenever I change data in database I have to refresh whole page to see new data in div.
What I want to do is to click a button on homepage should reload/refesh data only for div.
the below script reloads the whole page
<script>
$("button3").click(function(){
$("#container").load('WebForm1.aspx #container');
</script>
<form id="form1" runat="server">
<div id="container">
<ul id="js-news" class="js-hidden" >
<li class="news-item"><asp:Literal ID="news" runat="server" /></li>
<li class="news-item"><asp:Literal ID="news1" runat="server" /></li>
<li class="news-item"><asp:Literal ID="news2" runat="server" /></li>
</ul>
</div> <asp:Button ID="Button3" runat="server" Text="Button" />
I hope you guys can help me out.Thanks I believe I need AJAX or something :/