I think it was originally built to postback, but then it was modified to "return false" and handle the clicks with client-side javascript.
My objective is to use LIs instead of INPUTs. I have changed this:
Code: Select all
<asp:Button ID="btnPackages" Text="Packages" runat="server" />
<asp:Button ID="btnTechDocs" Text="Tech Docs" runat="server"/>
<asp:Button ID="btnSpecifications" Text="Specifications" runat="server"/>
<asp:Button ID="btnBlockDiagram" Text="Block Diagram" runat="server"/>
<asp:Button ID="btnSalesSupport" Text="Sales Support" runat="server"/>
Code: Select all
<asp:ListItem ID="btnPackages" Text="Packages" runat="server" />
<asp:ListItem ID="btnTechDocs" Text="Tech Docs" runat="server"/>
<asp:ListItem ID="btnSpecifications" Text="Specifications" runat="server"/>
<asp:ListItem ID="btnBlockDiagram" Text="Block Diagram" runat="server"/>
<asp:ListItem ID="btnSalesSupport" Text="Sales Support" runat="server"/>
The errors I receive are in the form of:
I also receive as similar error but for OnClientClick.'System.Web.UI.WebControls.ListItem' does not contain a definition for 'ClientID' and no extension method 'ClientID' accepting a first argument of type 'System.Web.UI.WebControls.ListItem' could be found (are you missing a using directive or an assembly reference?)
I should also add- when I comment-out all the error-causing stuff, no LIs are appearing in the HTML source.
What am I missing as a .Net rookie?
thanks.