| | |
Displaying Pages Dynamic to users
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2008
Posts: 121
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
Views: 433 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 ajax appliances application asp asp.net beginner box browser businesslogiclayer button c# cac chat checkbox child class compatible complex content contenttype control countryselector courier database datagrid datagridview datalist deployment development dgv dialog dropdown dropdownmenu dynamic dynamically edit embeddingactivexcontrol feedback fileuploader fill findcontrol flash flv folder form gridview gudi identity iis image javascript languages list maps menu mobile mssql nameisnotdeclared novell opera order problem profile ratings redirect refer registration relationaldatabases response.redirect rows search security select serializesmo.table sessionvariables silverlight smoobjects software sql ssl tracking treeview typeof validatedate validation vb vb.net vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment wizard xsl





