if user account in database is true how do i show lable on page member
public DataTable GetProfile(string username)
{
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["DB_A000E6_FIRSTAPP001"].ConnectionString);
SqlDataAdapter adp = new SqlDataAdapter("GetUserPOSTS", conn);
adp.SelectCommand.CommandType = CommandType.StoredProcedure;
// adp.SelectCommand.Parameters.AddWithValue("@Email", username);
adp.SelectCommand.Parameters.AddWithValue("@UserName", username);
adp.SelectCommand.Parameters.AddWithValue("@Id", Id);
DataTable dt = new DataTable();
//
adp.Fill(dt);
return dt;
sql
CREATE TABLE [dbo].[User3](
[UserId] [int] IDENTITY(1,1) NOT NULL,
[UserName] [nvarchar](200) NULL,
[Name] [nvarchar](500) NOT NULL,
[Email] [nvarchar](500) NULL,
[Password] [nvarchar](500) NOT NULL,
[Profession] [nvarchar](500) NULL,
[AccountCategory] [nvarchar](200) NULL,
[Gender] [nvarchar](500) NULL,
[MaritalStatus] [nvarchar](500) NULL,
[BirthDay] [date] NULL,
[State] [nvarchar](500) NULL,
[Country] [nvarchar](500) NULL,
[ImageName] [nvarchar](505) NULL,
[ImageBanner] [nvarchar](505) NULL,
[RegisterdDate] [date] NULL,
[UserStatus] [bit] NULL,
[LastLogin] [datetime] NULL,
CONSTRAINT [PK_User3] PRIMARY KEY CLUSTERED
(
[UserId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[User3] ADD CONSTRAINT [DF_User3_RegisterdDate] DEFAULT (getdate()) FOR [RegisterdDate]
GO
ALTER TABLE [dbo].[User3] ADD CONSTRAINT [DF_User3_LastLogin] DEFAULT (getdate()) FOR [LastLogin]
GO