Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 17, 2012 06:36 PM by Lars E J
Apr 17, 2012 09:31 AM|LINK
I have a problem with Visual Web Developer 2010 Express. I'm missing the Events flash button in the properties Window. If I add a linkbutton inside a ListView control the Events flash button is missing. I cant see this control in Design view, so therefore
I add this in source view. If I press on the ListView control in source view only the properties is visible NOT the Event Flash Button, so I can autogenerate the code for Click event.
In .vb file, I cant start the Event by the Combo-box, its not visible. If I type in manuel the code for the linkbuttom like this
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles LinkButton1.Click, I get this error
'BC30506: Handles clause requires a WithEvents variable defined in the containing type or one of its base types.'
I have tried to make a web .aspx file and copy the code to this one, but the error is still the same.
I have no idea what to do now !
Thank for all reply's.
Apr 17, 2012 10:46 AM|LINK
Apparently this is by design, take a look at this thread:
Apr 17, 2012 04:24 PM|LINK
Didn't work, because the linkbuttom isnt visible in design view, due to 'Error Creating Control - Ajax:Tabcontainer', and the linkbutton is inside this container.
So I created the linkbutton outside the tabcontainer and Event Flash is visible, therefore I could write the code. The code is working.
Thereafter I copied the Tabcontainer with the listview inside, around the linkbutton in source view, so the linkbutton will appear in the correct location. Now I test the code again and same error as above 'Protected Sub LinkButton1_Click(ByVal sender
As Object, ByVal e As EventArgs) Handles LinkButton1.Click'
Apr 17, 2012 06:36 PM|LINK
I didnt solve the issue with Flash Icon. But I think I soved my problem.
I needed to add a trigger for updatepanel. But in the first run its couldnt find the control within listview, but if I removed the <Triggers> tags from .aspx and added this line i Event. page.load 'Dim
AsyncPostBackTrigger'. I get the result Im looking for.