How to run code in a server side (asp.net) button in a facebook application?
I am develop a facebook application. I was added a开发者_如何学Python server side or (asp.net) button to do something ,but it isnt work. when i click the button nothing take place at all and it isn
t back to the server.
can anybody help me ,please?
thanks in advance
this is my code
protected void Button2_Click(object sender, EventArgs e) { Label2.Text = "OK"; }
Make sure in your aspx button tag you have the runat="server" attribute, like so:
<asp:Button ID="Button2" runat="server" Text="Not OK" OnClick="Button2_Click" />
精彩评论