Last post Dec 26, 2016 03:01 AM by Jean Sun
Dec 24, 2016 01:19 PM|davilanka|LINK
I am developing web application project in asp.net web forms. But postback events are not user friendly. So i am searching for no postback example. Please can you send me some examples no postback web application project.
Note: I will be very happy if you send me service layer and UI layer separately.
Dec 26, 2016 03:01 AM|Jean Sun|LINK
In the old HTML, the only way to make something updated on the webpage is to resend a new webpage to the client browser. That's what ASP used to do, you have to do this thing call a "PostBack" to send an updated page to the client.
In ASP .NET, you don't have to resend the entire webpage. You can now use AJAX, or other ASP.NET controls such that you don't have to resend the entire webpage.
To avoid button click postback, you can use the following code.
<asp:button runat="server".... OnClientClick="myfunction(); return false;" />
The following link shows how to use Ajax in ASP.NET, please take it as reference.