[ASP.NET] Page.ispostback

xiaoxiao2021-03-05  49

--- Try ASP.NET (DataGrid) - This semester school has opened an ASP.NET course, using the "ASP.NET Confidential Tutorial" published by Tsinghua University. ASP has made a website, so it is very fast to ASP.NET. I want to try to use the DataGrid, use the WebDataGrid editing function, but find that you always return to the modified content in Textbox correctly, but return to the content in the original TextBox. After reading the book, I found some of the code.

1 private sub page_load () Sub Page_load (Byval e as system.EventArgs) Handles mybase.load2 3 if not page.ispostback the4 'database binding DataGrid5 end if6 End Sub

Obviously ISPOSTBACK is the reason I want to find, check MSDN, the problem is here! --- End ---

转载请注明原文地址:https://www.9cbs.com/read-32872.html

New Post(0)