I'm making an ASCX page to include in some ASPX pages, but I've noticed that when I try to inport the System.Web.Security namespace into the control, that it doesn't actually import. Works fine in ASPX pages. I need to use User.Identity.Name in my ASCX, but it won't let me. Is there a way to do this?<BR><BR>Imports System.Data.SqlClient<BR><b>Imports System.Web.Security</b><BR><BR>Public MustInherit Class creditmemolist1<BR> Inherits System.Web.UI.UserControl<BR> Protected WithEvents DataGrid1 As System.Web.UI.WebControls.DataGrid<BR><BR> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<BR> Dim cmd As SqlDataAdapter<BR> Dim cn As SqlConnection = New SqlConnection("CONNECTION STRING HERE")<BR> Dim ds As DataSet = New DataSet()<BR> cn.Open()<BR> cmd = New SqlDataAdapter("sp_XTRA_CreditMemoList", cn)<BR> cmd.SelectCommand.CommandType = CommandType.StoredProcedure<BR> cmd.SelectCommand.Parameters.Add(New SqlParameter("@iUser", SqlDbType.Int))<BR> <b>cmd.SelectCommand.Parameters("@iUser").Value = http://aspmessageboard.com/archive/index.php/User.Identity.Name</b><BR> cmd.Fill(ds, "XTRA_CreditMemos")<BR> DataGrid1.DataSource = ds<BR> DataGrid1.DataBind()<BR> cn.Close()<BR> End Sub<BR><BR>End Class