MSDN Magazine December 2003
View Complete Post
I want to make Rolebase menu in MVC such that if user doesnot have permission for some action then that Action name shouldnot be shown in the Menu.
I have used the code in the url(http://forums.asp.net/t/1566328.aspx) in my MVC application.My application is a Discussion Forum(in MVC) same functionality as in this forum forums.asp.net
I have used Controllers for post, thread etc.In each controller there are some actions that are using [Authorize(Roles)] attribute
but this coding does not count those Actions in Controllers having Authorize attribute according to the url http://forums.asp.net/t/1566328.aspx
In the code, Authorize attribute is applied to Controller class, but my requirement is of Applying Authorize attribute to some actions in controller so that some are available for all users and some links are available rolewise.Now what is the solution for that?
Hello all, first ever post here :)
Hope you guys can help me out, this drives me crazy...
So I got 2 updatepanels on my page. In one there is a Timer which updates for example a label. In the other one there is a dropdownextender. Everytime the timer ticks while the dropdown menu is displayed the menu disapears. I attached the sample code below....any insights on this? And yes, the dropdown and the label need to be in two seperate updatepanels....
<form id="form1" runat="server"> <asp:ToolkitScriptManager ID="ScriptManager1" runat="server" /> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick" Interval="4000" /> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> </ContentTemplate> </asp:UpdatePanel> <asp:UpdatePanel ID="UpdatePanel2" runat="server"> <ContentTemplate> <asp:DropDo
I've created a SetupWizard, but can't get it to show the Icon for the shortcut on desktop and program menu. The installation goes fine without any errors, the only problem is the icon.
I've made a shortcut of my exe file in the Application Folder and dragged the shortcut to the Desktop folder, then on the shortcut properties, I assigned it an icon picture located in Application Folder.
Any suggestions will be very much appreciated.
I know what Singleton Pattern means and Abstract class means.
What I wanted to know was how would this apply to real world.
Could anyone give me any good example or simple explanation.
Say I have a simple website, why would I use any of the above if any.
Why would it simplify my architechture.
Thanks in advace.
May i use the collapse and expand feature (like tree menu) at Report iam using the Report viewer Control for displaying the Report on my Asp.net Page .
I have number records and each record have detail as i clicked or expand the record then details will be shown is it possible with report viewer control If any one have experince before please share the ideas.
Can anyone provide me an example of one to one and one two many relationship between classes in c# with class diagram and explationation.
I have been using asp.net menu control that is programmatically binded at runtime and has n child node levels. Now i want to use CssAdapterMenu instead because the menu control contains more than 1000 menuItems(in the near future it can also be more 2000 menuItems) and has very slow response in IE 6 or IE 7.
Now my question is how should i change the classic asp.net menu to CssAdapterMenu. What should be the steps? Any samples example of n child node levels would be helpful
I am using asp.net menu using cssadapter. How Can I change this the menu show menu using mouse click