四、程序填空题 (共2题,每题10分,共20分)
44、后台实现用户注册和登录功能
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using
System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ( 1 ) __________ ;
public partial class Login :
System.Web.UI.Page
{
protected System.Data.SqlClient.SqlConnection Cn;
protected System.Data.SqlClient.SqlCommand Cm;
protected System.Data.SqlClient.SqlDataAdapter Da;
protected System.Data.DataSet Ds;
protected System.Data.SqlClient.SqlDataReader Dr;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["username"] == null ||
Session["username"] == "")
{