tags:

views:

42

answers:

0

Hello guys,

I have a problem: My facebox has a button and textbox(asp.net server controls) I want when i click the button to change the textbox text here is my aspx code:

<div id="FaceDiv" style="display:none" >I'm your facebox<br />
    <asp:Button ID="ShowButton" runat="server" Text="Show text" OnClick="ShowButton_Click" />
    <asp:TextBox ID="ShowTextBox" runat="server" ></asp:TextBox>
</div>

My jQuery code:

$('#A2').click(function(e) {
    jQuery.facebox({ div: '#FaceDiv' })
});

Code behind:

protected void ShowButton_Click(object sender, EventArgs e)
{
    ShowTextBox.Text = "I m ur text show";
}

When i click the button ,nothing happens.

I have looked for a solution trou google, I've found that if u change:

$('body').append($.facebox.settings.faceboxHtml)

to:

$('form').append($.facebox.settings.faceboxHtml)

it works.But i doesn't work for me.

Help,cause i wonna use facebox.fyi,in facebook,when u see friends popup,u can do next,prvious,search.i want something like that.Thanks.