开发者

Strange 'sidebar effects' associated with hiding sidebar from a button event

I have a 2 step wizard control with a button on each step and a detailview on the second step hooked to an ObjectDataSource with select and insert methods defined. The button on the first step of the wizard hides the wizard side bar using DisplaySideBar=false and programatically navigates to the second step. The button on the second step unhides the side bar using DisplaySideBar=true and navigates back to the first step.

I have discovered that when I use th开发者_运维知识库e button on the first step to navigate to the second step so that the sidebar is hidden and then I attempt to insert a record into the detail view the detail view disappears completely after clicking 'insert' yet if I restart the wizard and navigate to the second step using the sidebar the insert operation goes thru correctly.

Any ideas what would cause this? Is it a Microsoft bug?


If there is only one step that you want to hide the sidebar on, you can set it to the Complete step in xhtml.

<asp:WizardStep StepType="Complete" ...
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜