Code block on ASPX frontend?
Hello all,
I am new in using EXT.NET and try to use the features of this, however, I would like to know if there is something like code block for C# ASPX on the front end depending on the logon session variables, say for example
Code:
<% if (this.Session["UserID"]!="") %>
<ext:Button runat="server" Text="Logon" Cls="my-scale" OverCls="x-over" PressedCls="x-button-pressed" IconUrl="Icons/logon.png">
<% else %>
<ext:Label runat="server" Text="<%=this.Session["UserID"]%>">
I need some logic that will dynamic change after user logon, and also some code block depending on the database value, some control tag maybe hidden if there is no such values. Also, after one of dropdown list value then will hidden some text box or one of the gridpanel columns ... etc
I know that it maybe not simply like if then else, but could you give me some examples or there are some alternatives to achive this kind of requirements?