|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Member
Iscritto dal: Oct 2005
Messaggi: 186
|
Nessun valore predefinito per il parametro [@categoria].
ho questo problema:
dato il listato seguente quando vado a compilare e processare la riga sottolineata mi viene dato quest'errore: Nessun valore predefinito per il parametro [@categoria]. questo è il listato <%@ Page Language="VB" Debug="true" %> <%@ Register TagPrefix="bike" TagName="intestazione" Src="intestazione.ascx" %> <%@ Register TagPrefix="bike" TagName="menu" Src="menu.ascx" %> <%@ import Namespace="system.data" %> <%@ import Namespace="system.data.oledb" %> <script runat="server"> sub page_load(sender as object, e as eventargs) 'ottieni categoriaid grazie query dim categoriaID as string = cstr(request.params("cat")) 'imposta immagine e etichetta image1.imageurl = "images/" & categoriaID & ".gif" label1.text = "<b>" & categoriaID & "</b>" 'popola elenco con categorie prodotti dim objbike as new bikebuilding.bikebuilding dim objreader as oleDBdataReader =objbike.ottienicategoria(categoriaID) datalist1.datasource=objreader datalist1.databind() objreader.close() objbike.disponi end sub </script> <html> <head> </head> <body> <td align="top" width="110"> <asp:Image id="Image1" align="texttop" border="1" runat="server"></asp:Image> <br /> <asp:Label id="Label1" runat="server"></asp:Label></td> <td valign="top"> <form runat="server"> <asp <ItemTemplate> <table width="200"> <tbody> <tr> <td valign="center" width="200"> <b><%# container.dataitem("nome")%></b> <br /> <%# container.dataitem("descrizione")%> <br /> <b>Prezzo: </b><%# system.string.format("{0;c}", container.dataitem("prezzo"))%> <br /> <a href="aggiungialcarrello.aspx?partID=<%# container.dataitem("partid")%>&cat=<%# container.dataitem("categoria")%>"> <font color="#9d0000"><b> Aggiungi al carrello </b></font> </a></td> </tr> </tbody> </table> </ItemTemplate> </asp </form> </td> </body> </html> qualcuno potrebbe dirmi cosa fare per risolvere?? grazie..
__________________
DFI Blood Iron P35-T2RL, 2*1Gb Crucial Ballistix Tracer 800Mhz, Intel Q6600, XFX GeForce 8800 GT 512Mb DDR3, OCZ GamexStream 700W, Thermalright IFX-14, Thermaltake Kandalf!! I Got The Love!! |
|
|
|
|
|
#2 |
|
Member
Iscritto dal: Oct 2005
Messaggi: 186
|
nessuno sa aiutarmi??
__________________
DFI Blood Iron P35-T2RL, 2*1Gb Crucial Ballistix Tracer 800Mhz, Intel Q6600, XFX GeForce 8800 GT 512Mb DDR3, OCZ GamexStream 700W, Thermalright IFX-14, Thermaltake Kandalf!! I Got The Love!! |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 04:57.


















