Skip to main content
13 events
when toggle format what by license comment
May 15 at 13:03 answer added dibello.4 timeline score: 0
May 13 at 22:09 answer added Albert D. Kallal timeline score: 0
May 10 at 19:09 comment added dibello.4 I think all ASP.NET pages have post back.
May 10 at 14:25 comment added HardCode I completely missed the fact that this is ASP.NET. I'm not a web guy, but I'll ask, is your button raising a post back? Do you have code in the "page load" event that checks for a post back?
May 10 at 13:23 comment added dibello.4 All the code below InitializeReportsView() is just added to test the setting of Visibility but is not necessary,
May 10 at 12:41 comment added dibello.4 Public Shared Sub ToggleMenuButtonSelection(ByVal selectedButton As Button, ByVal cssClassBaseName As String) For Each ctrl As Control In selectedButton.Parent.Controls If TypeOf ctrl Is Button Then If ctrl.ID = selectedButton.ID Then CType(ctrl, Button).CssClass = cssClassBaseName + " " + cssClassBaseName + "_selected" Else CType(ctrl, Button).CssClass = cssClassBaseName End If End If Next End Sub
May 10 at 12:32 comment added dibello.4 I want all the controls I am setting to True to be true. Currently these Controls remain False after setting them to True in code behind.
May 9 at 15:18 comment added HardCode What is ToggleMenuButtonSelection() doing? Also, revise your question to clearly state the desired behavior. As of now, it just says what is happening and not what you want it to do.
May 9 at 12:58 comment added dibello.4 I added that code to try another way to set Control Visible to True but no matter what the control in code debugger is false and the controls don't display. Any idea how to fix this?
May 8 at 15:40 comment added HardCode I'm not totally sure, but it looks like you have a lot of unnecessary code, such as declaring cntrl and assigning it a reference to an existing control. You declare container but never use it. I would extract all the code to change visibility of controls to a separate Sub, with a parameter isVisible.
May 8 at 14:05 history edited Craig CC BY-SA 4.0
Also indent the sub declaration so it's formatted as code.
S May 8 at 12:46 review First questions
May 8 at 21:22
S May 8 at 12:46 history asked dibello.4 CC BY-SA 4.0 created from wizard