This is added in the code which hides and unhides the text box based on Authentication
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void dvWebContent_PreRender(object sender, EventArgs e)
{
if (User.Identity.IsAuthenticated)
{
dvWebContent.Rows[0].Visible = true;
dvWebContent1.Rows[0].Visible = true;
dvWebContent2.Rows[0].Visible = true;
}
else
{
dvWebContent.Rows[0].Visible = false;
dvWebContent1.Rows[0].Visible = false;
dvWebContent2.Rows[0].Visible = false;
}
}
}