Click here to Skip to main content
15,905,877 members

Comments by Member 12618369 (Top 30 by date)

Member 12618369 25-Aug-16 4:23am View    
Thanks but link button not working as a tag in my case I need to use a tag
Member 12618369 23-Aug-16 7:56am View    
sorry I cannot see your updated solution where is it
thanks
Member 12618369 23-Aug-16 7:43am View    
yes even with false attributes does not work
my actual issue is I do need to make place holder visible when I click on the link button
Member 12618369 23-Aug-16 7:25am View    
this the code for new empty page I have tried
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:LinkButton ID="link1" runat="server" CausesValidation="false" Text="Forgot Password?" OnClick="link1_Click">
<br />
<asp:PlaceHolder ID="typeEmail" runat="server" >
<asp:TextBox ID="textbox1" Visible="false" runat="server" AutoComplete="off">


</div>
</form>
</body>
</html>
code behind
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void link1_Click(object sender, EventArgs e)
{
//typeEmail.Visible = true;
//typeEmail.Visible = true;
typeEmail.Visible = !typeEmail.Visible;
textbox1.Visible = !textbox1.Visible;
}
}


I have realised that some problem with link button because I tried button it works fine
Member 12618369 23-Aug-16 7:17am View    
Thanks I tried it in new empty page but still not working