why a link button on master page not being fired on click the button.

Posted by Arunkumar_1492 under ASP.NET on 4/16/2013 | Points: 10 | Views : 4045 | Status : [Member] | Replies : 2
my application have a master page and a link button as home on master page..............when clicking on button event is not fired...........

plz help me.




Responses

Posted by: Kmandapalli on: 4/19/2013 [Member] Silver | Points: 25

Up
0
Down
Hi Arun,

The event for the Link Button does not get fired if there is a mistake in the syntax.
Syntax is:
<asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/Home.aspx">LinkButton</asp:LinkButton>
If you just only want to redirect the page while clicking the button, you can just use PostBackUrl="~/Home.aspx".
If you want to perform any action, then you can write on click event:
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_click">LinkButton</asp:LinkButton>
in the .cs page under the event handler write your code.

Regards,
Shree M.


Kavya Shree Mandapalli

Arunkumar_1492, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raj.Trivedi on: 4/19/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hello

Go to the properties window and in that there is an event option on the top of the property window and check if the click event is registered or not

Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved

Arunkumar_1492, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response