|
Sorry, should have been more descriptive. I'm trying to show/hide content on an actual page itself.
My example:
I have 3 roles - Admin, Stakeholder, ProjectManager. I have a nav pane that shows available options for each role. I'd like to hide options not available to users that aren't a part of that specific role. I don't want ProjectManager role members to see the options available to Stakeholder role members, and vice versa.
Is there an accepted method for doing this? Ideally I could redirect upon login , to seperate pages (Admin to an admin.aspx page, Stakeholder to stakeholder.aspx page, etc.), but I don't think one can do that....
|
|
|
|
|
you can use the RoleProvider.IsUserInRole Method [^].This function returns a boolean indicating if the user is in a specifed role or not and the you show your options based on the boolean for example
If IsUserInRole("User","Admin") Then
'Show Admin Options
ElseIf IsUserInRole("User","Stakeholder") Then
'Show Stakeholder Options
Else
'....
End If
|
|
|
|
|
I have a solution that has 3 projects. One of them is serving as Class Library project (technically its a ASP.NET Web Application Project but it only contain classes).
Where would be the best place to store all the connection strings?
1- GCL.config file?
I could use ConfigurationManager class to access the connection strings
or
2- Global.resource file?
I could reference it directly GlobalResources.MyConnectionString.ToString();
Just trying to find out the best practice Thanks.
Regards,
Robert
|
|
|
|
|
I think the best and common practice is to store the connection string in the config file.
You can also use Aspnet_setreg to store and encrypt credintails in the registery [^]
|
|
|
|
|
Hi,
Difference b/w Asp.Net 1.1 and 2.0?
Regards
Kavi
|
|
|
|
|
kavi2000 wrote: Difference b/w Asp.Net 1.1 and 2.0?
Yes, they are different.
---
Year happy = new Year(2007);
|
|
|
|
|
Hello Boss,
I know that both r different. I asked what is the difference?;P
|
|
|
|
|
Same answer as before, go read www.asp.net.
That site has enough information to keep you busy for at least a day or two.
WM.
What about weapons of mass-construction?
"You can always try to smash it with a wrench to fix that. It might actually work" - WillemM
|
|
|
|
|
kavi2000 wrote: I know that both r different.
No, they "r" not both different. It's only one of them that is different.
kavi2000 wrote: I asked what is the difference?
Actually, you didn't.
People have already written millions of words about the differences. There is not any reason to repeat any of it again, just because you (tried to) ask for it. You can find a lot about it if you search, here, in your favourite search engine, or why not get it from the horses mouth; go and see what Microsoft has to say about it.
---
Year happy = new Year(2007);
|
|
|
|
|
I know there r search engines to find out the answer and i don't expect any answer from you Mr or M/s.guffa. if u seemed to be irritated with the question then why r u replying to me? Seems that u've understood what i said?;P
|
|
|
|
|
kavi2000 wrote: I know there r search engines to find out the answer
Well, if you're scared to use them, you should probably find another job/hobby.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Did you even try to google for it?
http://www.google.com/search?q=asp.net+1.1+2.0+differences[^]
If so, then what specific questions do you have?
Jon Sagara
I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So i had to leave the place as soon as possible.
--Mr.Prakash
Blog | Site | Articles
|
|
|
|
|
I am building a website that contains some nodes in the sitemap that I don't wish to display in the treeview for the navigation, however I do want to let them show up in the breadcrumb or at least the parent of the node. Is this possible to achieve in asp.net 2.0 ?
WM.
What about weapons of mass-construction?
"You can always try to smash it with a wrench to fix that. It might actually work" - WillemM
|
|
|
|
|
Hi All..
I have an form that shows products and their descriptions, prices and their images, I save the images URLs in the database i.e.: I store this in database:
but when i show it in the datagrid it shows the text itself, and does not perform its HTML...
Thanx alot...
Nour Abdel-Salam
|
|
|
|
|
How do I create a forum in asp.net?
David Stern Online!
www.davidstern.co.il
|
|
|
|
|
|
Also, here[^].
Jon Sagara
I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So i had to leave the place as soon as possible.
--Mr.Prakash
Blog | Site | Articles
|
|
|
|
|
Hi,
What is Asp.Net?
Regards
Kavi
|
|
|
|
|
|
|
|
;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P;P
|
|
|
|
|
Instead of wasting space, why didn't you simply do a search on Google?
|
|
|
|
|
|