| | |
Displaying Pages Dynamic to users
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2008
Posts: 117
Reputation:
Solved Threads: 2
Hello,
I am using visual webdeveloper 2008,
I have created users using asp.net configuration.
Now i am having 2 roles admin and users,
And i am having 3 pages as login,register,secured
So wen i enter the website as admin all these 3 pages must be visible to the user.
Wen i enter as guest it must show only register and login
After i login it must not show register and login
How to set pages like that???
Thanks.
I am using visual webdeveloper 2008,
I have created users using asp.net configuration.
Now i am having 2 roles admin and users,
And i am having 3 pages as login,register,secured
So wen i enter the website as admin all these 3 pages must be visible to the user.
Wen i enter as guest it must show only register and login
After i login it must not show register and login
How to set pages like that???
Thanks.
•
•
Join Date: Apr 2009
Posts: 13
Reputation:
Solved Threads: 0
you can save the role in a session variable and accordingly show the respective pages..
eg.
eg.
asp.net Syntax (Toggle Plain Text)
if(txtusername.Text=="ADMIN") { show desired pages } else if(txtusername.Text=="USER") { show desired pages }
Last edited by peter_budo; May 19th, 2009 at 7:40 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
•
•
Join Date: Apr 2009
Posts: 13
Reputation:
Solved Threads: 0
if thats the case then you just need to show the required pages..i mean its upto u what pages u want to give access to...to remove the menus simple dont show them...
i had a similar requirement but then i had a table maintained which user can access what menu...so based upon the query results i showed them the required pages!!
i had a similar requirement but then i had a table maintained which user can access what menu...so based upon the query results i showed them the required pages!!
![]() |
Similar Threads
- dynamic product page help (PHP)
- Accessing Master Template Subs from Content Pages (ASP.NET)
- How do i Password protect all my asp.net pages on my website (ASP.NET)
- html vs. php (PHP)
- Hit counter (JavaScript / DHTML / AJAX)
- dynamically update pages (HTML and CSS)
- Apache mod_rewrite with Google Ads (Linux Servers and Apache)
- RedHat Network Server (*nix Hardware Configuration)
- IE 5.0 not displaying pages properly (Web Browsers)
Other Threads in the ASP.NET Forum
- Previous Thread: Using Checkbox in Data List
- Next Thread: Dropdownlist in ASP.Net
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 activexcontrol advice ajax alltypeofvideos anathor application asp asp.net bc30451 bottomasp.net browser button c# c#gridviewcolumn checkbox click commonfunctions confirmationcodegeneration courier css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dynamically edit expose feedback fill flash form formatdecimal forms formview google grid gridview homeedition hosting iframe iis javascript jquery list listbox login microsoft mono mouse mssql multistepregistration news numerical objects opera panelmasterpagebuttoncontrols parent project radio registration reportemail richtextbox rotatepage save schoolproject search security silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking unauthorized validation vb.net video videos view virtualdirectory vista visualstudio web webapplications webdevelopemnt webprogramming webservice xml xsl youareanotmemberofthedebuggerusers





