Hello.
I'm using Bootsrap for popup form. The text in this form should be changed dynamically.
Here is my LinkButton, which has to call popup form:
<asp:LinkButton ID="linkPopup" runat="server" class="btn btn-default"
Text="Test popup" OnClick="linkPopup_Click" />;
Here I'm adding some attributes to make Bootstrap call popup form:
linkPopup.Attributes.Add("data-toggle", "modal");
linkPopup.Attributes.Add("href", "#TestPopup");
Server method that changes labelPopup text:
protected void linkPopup_Click(object sender, EventArgs e)
{
labelPopup.Text = "Some new text.";
}
The problem is, that if I add attributes to call the form, the server method does not work. Without attributes the server method works, but then I can't use popup.