| | |
Displaying Pages Dynamic to users
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2008
Posts: 92
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 |
.net 2.0 3.5 activexcontrol advice ajax appliances asp asp.net beginner bottomasp.net box browser businesslogiclayer button c# c#gridviewcolumn cac checkbox class click compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datalist deadlock deployment development dgv dialog dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv forms gridview gudi homeedition iframe iis javascript jquery list menu mono mssql multistepregistration nameisnotdeclared novell objects opera order problem ratings redirect registration relationaldatabases reportemail rotatepage search security serializesmo.table sessionvariables silverlight smartcard smoobjects software sql ssl tracking treeview validatedate validation vb.net virtualdirectory vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment wizard xml xsl





