2
Reply

Method name expect

17y
4.9k
0
Reply

    sridhar --

    Your getting that error because false is literal and should not have the parentheses.

    Label5.Visible = false();

    Should look like this:

    Label5.Visible = false;

    Jack

    public partial class welcome : System.Web.UI.Page

    {

    protected void Page_Load(object sender, EventArgs e)

    {

    Label5.Visible = false();

    }

    protected void LinkButton1_Click(object sender, EventArgs e)

    {

    Button4.Enabled = false();

    }

    when i am trying like this, it show error like Method name expected.What is mistake i have done here.Please let me know.

    17y
    0