Click here to Skip to main content
15,884,810 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.NET
<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:
C#
linkPopup.Attributes.Add("data-toggle", "modal");
linkPopup.Attributes.Add("href", "#TestPopup");

Server method that changes labelPopup text:
C#
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.
Posted
Updated 18-Nov-14 15:17pm
v3
Comments
Suvabrata Roy 18-Nov-14 23:28pm    
Post the page load code...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900