CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/31/2008 7:09:46 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 24 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
far_sh
Asp.Net User
Unable to Update Menu Control from database3/31/2008 7:09:46 AM

0/0

Dear all,

I am dynamically create menu from database. The menu items will be shown on the basis of users e.g. if an administartor is logged in all the menuitmes of the menu are shown and if a user is logged in then only those menu items are shown which are assigned to him in the database. All the values are comming from database. The problem is that when the first user logged in the menu items assigned to him will be shown now that user is now logged off. Now the second user is logged in. Now it must show those menuitems which are assigned to him but my application shown him the menuitems of the first user. so how to get rid of this. I want to update my menu according to the user. I am also using Masterpage and content Page. Please provide me the solution.

Thanks

 

david wendelken
Asp.Net User
Re: Unable to Update Menu Control from database3/31/2008 11:15:21 AM

0/0

When is the menu database being queried?

My guess is when the application is first loaded up, not on each initial page load or page postback.  Is that correct?

If so, it also needs to be queried (and the menu control databound again) when a user logs off and when a user logs on (and maybe when a session expiration error shows up).

 

 


If this answered your question, be sure to mark it as the answer. That way, everybody after you will know it's the answer also!
Amanda Wang - M
Asp.Net User
Re: Unable to Update Menu Control from database4/2/2008 2:54:50 AM

0/0

Hi,

We know what your trouble is, but we cannot know what cause your trouble without the details.

But I have encountered this problem, because I have a xmldatasource for the menu control, and I get the menuitems from the database and store them into a dataset, then use the GetXml method of the dataset to return xml reprensentation, for example:

xmlDataSource.Data = DS.GetXml();

When I run the application, found the menitems cannot updated according to the login user, But it wroks fine after I set the xml's property EnableCaching is False .

Hope this helps you. If it's not helpful, you should tell us the details about how did you do.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
far_sh
Asp.Net User
Re: Unable to Update Menu Control from database4/2/2008 12:10:57 PM

0/0

Thanks Amanda Wang

The problem is solved. i also set the xml's enableCaching Property False and now its working.

Thanks once again.

 

 

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
SQL Server 2005 Bible Authors: Paul Nielsen, Pages: 1293, Published: 2006
Ecological Models and Data in R Authors: Benjamin M. Bolker, Pages: 408, Published: 2008
Digest of Papers: Intellectual Leverage Authors: IEEE Computer Society, Compcon, Pages: 596, Published: 1989

Web:
Unable to update Sql database table C# Friends Unable to update Sql database table Posted: 17 Aug 2008 09:52 AM ... Form1 is used to show the menu and on the menu is a button that displays a list in a ...
TheMSsForum.com >> Visual Basic >> Unable to update excel file ... Is there a way to tell the system to turn off the parent menu when all the .... to update these columns with database table. I am using ADO control to open ...
Unable to update database on Server - CodingForums.com All Levels Menu: CSS/HTML list based menu with support for infinite levels of sub ... Reload this Page Unable to update database on Server ...
Unable to update into Database. - MSDN Forums after creating the code and design the database, I'm unable to update or save any ... You are making a database application with BindingNavigator control, ...
Unable to Update Database added to Project Unable to Update Database added to Project. I see from time to time people complaining they can not update an database they added to their Visual Studio ...
CodeProject: Very Compatible DHTML Menu ASP.NET User Control. Free ... This is the first update of this DHTML menu user control. In this release, I made some ..... Construction of the menu from database for the first time ...
How to bind data to menu navigation control from database - ASP ... If any changes are made in database, then automatically it should update in menu navigation control..plz guide me. ...
Unable to update Trend Micro or any other program : Trend Micro ... Jul 3, 2008 ... I was also unable to access windows update. .... O23 - Service: Trend Micro Central Control Component (PcCtlCom) - Trend Micro Inc. ...
ClickOnce apps unable to update? - .NET C# ClickOnce apps unable to update?. Get answers to your questions in ... installed on the start menu, it seems I don't have permission to call ...
Unable to update settings... - Satellite TV support forum ... Also, can you connect with Dreambox Control Centre (available on _http://www.i- have-a-dreambox.com/wbb2/database.php)? DCC will automatically detect the ...




Search This Site:










private variables versus viewstate...

how to create a custom design panel

persisting simple custom class

problem with custom dropdownlist control

hosting asp.net 2.0 applications

server control postback problem

creating a control that other controls can be dropped in

help with a very simple custom control

specific url access for authenticated users

date picker control wanted with formatting

ms sql 2005 studio management express vs. full text search

write script tag in <head> in custom control

custom combobox

thread.currentthread.currentculture

how to create zip files

load control from given string type

how is this for colocation costs...

find out if a user is still connected

how "per server" license type could be made

need host with decent bandwidth and quick response time...

ipostbackeventhandler and ipostbackdatahandler

inherited method calls

how to get rows and columns collection in a data bound server control, independent of datasource attached.

do i have to compile my user control?

added child control is not rendered

extend existing control with left and top properties.

.net controls 2.0 > 1.1

choosing a cms - recommendations and advice

collection property's items in inner tags for datagrid

client side forms contol callback to javascript?

  Privacy | Contact Us
All Times Are GMT