开发者

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 isnt 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" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜