I have this little problem ... I have an asp.net website. I have a menu, everything is done with html and css. Therefore, when I click on the house, ajax loads other content into the specified div element. It works 100%.
In the content that was loaded into the div element, I have a button. ASP.NET Button
When I click the button, it gives me "Resource cannot be found." error.
Something must be missing me. If you do not understand, heres ajax:
//Load the Home page on click. $(document).ready(function () { $('.home').click(function () { $("#content").load("html/home/home.aspx"); }); });
Now the aspx page that has been loaded into the contents of the div displays the btnAdd button:
<asp:Panel ID="pnlAddNewBlog" runat="server"> <asp:TextBox ID="txtAddNewBlog" runat="server" TextMode="MultiLine"></asp:TextBox> <br /> <asp:Button ID="btnAdd" runat="server" Text="Add" /> </asp:Panel>
When I click on this button, an error appears.
I want to achieve: when the user clicks the button, the text in txtAddNewBlog is added to the database. Now I can achieve the use of C # ... but not if this error is in my way. Any ideas?
source share