Salve,
Sono abbastanza nuovo di questo forum e ancor di piu per la programmazione asp
Volevo chiedermi se cortesemente sapreste dirmi come cambiare il pulsante che di deafault e' grigio brutto con una immagine personalizzata.
Ho cercato vari post e ho trovato questa soluzione.
ma quando publico la pagina mi da questo errore:codice:<asp:imagebutton id="buttAdd" ImageUrl="dettagli1.png" runat="server" />
codice:Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: The base class includes the field 'buttAdd', but its type (System.Web.UI.WebControls.Button) is not compatible with the type of control (System.Web.UI.WebControls.ImageButton). Source Error: Line 210: <asp:Label id="lblAddToCart" runat="server" text="Quantita':"></asp:Label> Line 211: <asp:Textbox id="tBoxQuantita" runat="server" size="1" value="1" name="quantitaArt" Width="25"></asp:Textbox> Line 212: <asp:imagebutton id="buttAdd" ImageUrl="dettagli1.png" runat="server" /> Line 213: Line 214: Source File: /shop/articoli.aspx Line: 212
Premetto che il codice iniziale del pulsante era:
codice:<asp:button id="buttAdd" runat="server" text=<%#lingua.get("aggiungi al carrello@@Add to Cart")%> cssclass="pulsante"></asp:button>
Spero che mi possiate aiutare.
Grazie.
Daniele


Rispondi quotando