asp.net - Databind Function to Controls Visible Property Does Not Work -


I am using the database to set the property visible in Control:

on the page Control:

 & lt; ASP: LinkButton ID = "Achievtimink" Runat = "Server" visible = "& lt;% # Convention ()% & gt;" & Gt; Approve time & lt; / Asp: LinkButton & gt; 

CodeBehind Code:

As you can see that control should not be seen, still not yet. I am not getting any error, and I am amazed as to why this does not work.

Thanks for the help.

You have to do this below

  Secure Zero Page_load ( Object sender, event events e) {this.DataBind (); } Public Bull Canprop () {return false; }  

Then you can use this method on asp-control as you mentioned earlier!

But keep us informed! Every property on the page should have null , else the database will fail with the exception!


Comments