When you log in for the first time, if you have some binding data rendering when you first load, then if this page has other operations for the data, such as delete, modify, etc., you must be in the PageLoad event. use
IF (! page.ispostback) {data binding}
Because the PageLoad event is re-triggered when submitted to the server each time the web page, resulting in repeated binding initial values, then enter the Click event we need, so it will make some important information, such as the stored session value is lost or disruptive. When we join if (! Page.ispostback), it indicates that only the data binding only when the page is loaded in the first time. When we click a modification or delete button, the web page is submitted to the server, we debug it through breakpoints When I see that when I execute the PageLoad event, IF (! Page.ispostback) is started, and this page is not loaded for the first time, the program is automatically transferred to the modified or deleted Click event. Effectively control the operation of the program.