Little experience in ASP.NET - About code separation [Original]

xiaoxiao2021-03-06  48

Little experience in ASP.NET [About code separation]

Recently, in the project development, this is often encountered, that is, when the user clicks the Button on the page, the system needs to pop up a window. This window may be a standard dialog or a new page. I don't know how to achieve such functions, according to my previous programming habits, I think there should be a method similar to showMessage, but unfortunately this method is not in the web. By receiving the information online, the general approach is to write down the following code in the Button's OnClick event: private void button1_click (Object sender, system.eventargs e) {string strscript = "