Ask a Question related to ASP Components, Design and Development.
-
Wendy #1
ASP.NET 2.0 - Context.Items and PostbackUrl
We are currently using ASP.NET 2.0 to revamp one of our web applications. Let
me try to briefly explain how each page is laid out...
Usually within the page, there are 3 components... The header, the body, and
the footer. The header and footer are user controls created by one of our
developers, and contain things that all the pages in our web app should
contain. This is done to avoid inconsistencies (so you only change the header
once instead of changing it 20 times - once for each page).
The developer who created the header user control used Context.Items to
store some information. On my pages, I am trying to use PostbackUrl to post
form information from one page to another.
The problem I am having is this:
Both my pages call the header control. When I use PostbackUrl and
PreviousPage, I think the header control from the previous page gets "copied"
over to the page I am posting to. So in the second page, I get something like
a "dictionary keys have to be unique" exception. I think this is because the
Context.Items wasn't "cleared" from the PreviousPage since it was "copied"
over, so when the header user control tries to add the same key to
Context.Items in the second page, I get an exception.
I temporarily solved this problem by using Request.Form[...] rather than
PreviousPage.FindControl(...). I'm not sure if this is the right way to do
it, or if it will cause any problems.
So my question is: Can PostbackUrl and Context.Items work together? I guess
I could put some try/catch statements in the header control, but
unfortunately I don't have access to that file.
Wendy Guest
-
Adding Extra Context Menu Items
I am writing a highly customized plug-in for a company and finding the desire to add context menu items to menus other than just the 'Page' and... -
Creating master page where global items arearranged ABOVE local items
When you create a mater page, obviously all the items are arranged below anything on the individual pages. Is there a way of creating a master... -
Context Menu menu items Language Independent names
Hi everyone, Can somebody provide me the language independent names of menu items of the context menu(right click menu). I tried very hard to find... -
possible for publishers to edit Library Items /recurrent items like navigation?
I'd love to see this possibility too, but I think it's not possible. -
possible for publishers to edit Library Items / recurrent items like navigation?
No, you have to use an include of some sort. If you don't want to use SSI you can do it with Javascript. Search Google with the keyword "Javascript...



Reply With Quote

