Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi

I am new with ASP.NET and I want to create a Button Click event using this aspx code on VB.net

ASP
<asp:Button ID="btnClose4" runat="server" Text="Close" />

XML
<ajaxToolkit:ModalPopupExtender ID="MPEDivison2" runat="server" PopupControlID="divPopUpDiv"
                TargetControlID="btnDivision" OkControlID="btnClose" PopupDragHandleControlID="panelDragHandleDiv"
                BackgroundCssClass="ModalStyle">
            </ajaxToolkit:ModalPopupExtender>
Posted
Updated 12-Sep-13 6:37am
v3
Comments
Richard C Bishop 12-Sep-13 11:36am    
Just double-click the button in the design mode for the easiest way to create its event handler.
Sergey Alexandrovich Kryukov 12-Sep-13 11:39am    
...and, when it is done, OP can look at the resulting code and lean how to do it in ASP.NET + VB.NET code behind code...
—SA
Richard C Bishop 12-Sep-13 11:58am    
We can only hope.
Thanks7872 12-Sep-13 12:10pm    
Atleast from 3rd April 2013, you are thinking about ASP.NET if you still don't even know how to deal with click event of the button than i honestly suggest you to get some good book,refer to it,get some basics and than only move forward.
Sergey Alexandrovich Kryukov 12-Sep-13 12:11pm    
Great idea.
—SA

1 solution

After looking carefully on the aspx.vb, It turns out that UseSubmitBehavior is set to false
that why then the Button Click event won't fire..
thanks for the suggestion glad I found this nice forum.

BTW:
If how can I close this thread ? I think my problem is already solve
 
Share this answer
 
v3
Comments
ridoy 12-Sep-13 12:39pm    
Does it really necessary to close this thread? As everyone could see it who will face the same problem and get solutions.
iMaker.ph 12-Sep-13 12:50pm    
Well I receiver a comment on my previous post to close it it's solved but you still have a point.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900