ASP.NET and ASP

xiaoxiao2021-03-06  41

What is ASP.NET is, I am afraid that most people's understanding is different. So what is the relationship between ASP.NET and ASP? Let us look at the following example, this code is the user registration information module Submit button Click event to place the data submitted into the database.

Public void OnSubmit (Object Sender, Eventargs E) {if (page.isvalid) {// Database Try {bbsuser myuser = new bbsuser (); if (! myuser.getuser (txtusername.text)) {Myuser.createuser Bbsuser.createType.create, txtusername.text, txtpassword.text, txtHMail.Text, "");}} catch (exception exp) {#if debug response.write ("Excetion:" Exp.Message Return; # endif // debug server.transfer ("error.aspx");}}

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

New Post(0)