Discussions
Categories
Groups
Advertisement
Child Item
Home
Topics
Technology & Internet
Software & Web Development
Development
forms asp.net
GreenHell
Right I've got a form declared like this
<form runat="server" visible = "false">
I want to make visible = "true" if someone is logged in, how can I do this?
Find more posts tagged with
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of
Advertisement
Advertisement
Comments
Spunj
Using ASP.NET, your whole page is actually a form. Placing other forms on it is tricky. You dont' need a seperate form; place an '<asp:panel>' on the page and put your buttons/ textboxes inside it. On page load, check if your authentication and then set the panels visible property accordingly.
Any control with 'autopostback' set to true will cause a form submit for your page level form.
GreenHell
Got it working by setting the form visible = true and the labels and button inside equal to false. Funny ole language.
Boco
Another solution could be to group the controls onto a panel or make them into a composite control and just make that invisible/visible as needed.