|
Rank: Advanced Member Groups: Member
Joined: 12/5/2007 Posts: 57
|
Hi,
Probably another dumb question on my part but I am totally new to this concept so please bare with me. Our app utilizes 2 nested splitters on the master page. Basically the left pane is used to provide the majority of the navigation to the site.
In order to conserve real estate I would like to hide certain components in the navigation pane as we are trying to implement the functinality in that pane without using scroll bars as we have found issues with many browsers when they are used.
I am thinking because I need to change parts of the page in code during the postback event that the callback panel is probably the control to do the job. I guess my first question is that for certain events I do not need to do anything so just for testing what happens if I do not program an event handler for the callback panel's Execute event?
Thanks
Gary
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Usually you do not handle Execute event on the CallbackPanel. You would handle whatever event that you were handling as if the CallbackPanel did not exist. For example, if the original code updates a Label's text when a button is clicked inside the button's handler when CallbackPanel was not used, you would still do the same when using CallbackPanel.
Once you get your code working without the CallbackPanel, you would then put the CallbackPanel in and make sure:
1. The control you want to be updated is contained inside the CallbackPanel. For example, if you were to update a Label control, place that Label inside the CallbackPanel; 2. The control that triggers the update is set as a trigger of the CallbackPanel. For example, if the button were to trigger the update, you would set the button as a trigger for the CallbackPanel;
Hope this helps.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 12/5/2007 Posts: 57
|
Thanks, that is exactly the help I was looking for.
Cheers
Gary
|
|
Rank: Advanced Member Groups: Member
Joined: 12/5/2007 Posts: 57
|
Oops, forgot one other question. In the documentation it talks about changing the web.config file in order to make this stuff work properly. I looked at the souece code for the demo and checked it's web.config file and it does not have the additions mentioned in the documentation.
So, do I need to make these changes or not?
Cheers
Gary
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Not unless you wish to handle server side redirection. If you are not sure, you can start without making those changes. You will know (you will hit some errors) when you run into situations that needs them. :)
Thanks
|
|