I am starting with JQuery mobile, and I have a verty strange problem, my app is very simple, it's a page with a TextBox, a button and a Linkbutton:
<div data-role="content">
<asp:TextBox ID="TextBox_Topic" runat="server"></asp:TextBox>
<asp:Button ID="Button_add" runat="server" Text="Add" onclick="Button_add_Click" />
<asp:LinkButton ID="LinkButton_grid" runat="server" PostBackUrl="multisubsGrid.aspx" data-role="button">Continue</asp:LinkButton>
</div>
The only thing I have to do is insert text in the textbox, and when the add button is clicked add it to a Session variable (a list), and then click on the Linkbutton to go to another page. This is a very simple behaviour, and it worked fine before adding jquery mobile library. The problem is that when I insert some text and click the add button (it adds the text to the session variable) the LinkButton does not work, and I can't understand why is this happening.
this is my code behind:
protected void Button_add_Click(object sender, EventArgs e)
{
List<string> l = Session["topics"] as List<string>;
if (!l.Contains(TextBox_Topic.Text))
l.Add(TextBox_Topic.Text);
}
Hope somebody can help me. Thanks!!!