Foros del Web » Programando para Internet » ASPX (.net) »

Carrito de compra para formulario listview

Estas en el tema de Carrito de compra para formulario listview en el foro de ASPX (.net) en Foros del Web. Buenos dias, Tengo un proyecto en el cual se muestra a traves de un listview productos de venta, y quisiera implementarlo con un carrito de ...
  #1 (permalink)  
Antiguo 12/01/2012, 00:21
Avatar de GORI0056  
Fecha de Ingreso: julio-2009
Mensajes: 38
Antigüedad: 14 años, 8 meses
Puntos: 3
Pregunta Carrito de compra para formulario listview

Buenos dias,

Tengo un proyecto en el cual se muestra a traves de un listview productos de venta, y quisiera implementarlo con un carrito de la compra.
El lenguaje es C# y estoy trabajando con Visual Studio 2008. Solo quiero incluir un Textbox y un boton en el item del listview y que me trasportase los datos de codigo, nombre y pvp1iva a un subformulario que posteriormente lo pudiera enviar por email. Estare enormemente agradecido si alguien conoce la forma de hacer esto. El listview toma los datos a traves de un SqlDataSource.

<asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<div ID="itemPlaceholderContainer" runat="server">
<span ID="itemPlaceholder" runat="server" />
<table class="style3" height="390">
<tr>
<td>
<asp:HyperLink ID="HyperLink14" runat="server"
NavigateUrl='<%# Eval("codigo", "productosdetalles.aspx?codigo={0}") %>'
Target="_self" BorderStyle="None">
<asp:Image ID="Image2" runat="server"
Width="290px"
Height="290px"
ImageUrl='<%# Eval("fbitmap") %>'
AlternateText='<%# Eval("nombre") %>'>
</asp:Image>
</asp:HyperLink>
</td>
<td valign="middle" align="left" width="600">
<span style="font-size: x-small; font-family: tahoma;">Código:
<asp:Label ID="Label3" runat="server" Text='<%# Eval("codigo") %>'></asp:Label>
</span>
<br />
<span style="color: #006B94; font-weight: bold; font-family: tahoma; font-size: 10pt;">
<asp:Label ID="Label4" runat="server" Text='<%# Eval("nombre") %>'></asp:Label>
</span>
<br />
<span style="font-family: tahoma; font-size: 12pt">
<br />
<span style="font-family: tahoma; font-size: 12pt; color: #CC3300; font-weight: bold;">
<asp:Label ID="Label5" runat="server" Text='<%# Eval("pvp1iva","{0:C2}") %>'></asp:Label>
</span>
<span style="font-family: tahoma; font-size: 8pt">Iva Incluído.</span>
<br />
<span style="font-family: tahoma; font-size: 10pt; color: #CC3300; font-weight: bold;">
<asp:Label ID="Label6" runat="server" Text='<%# Eval("pvp2iva","{0:C2}") %>' Visible="false" ></asp:Label>
</span>
<span style="font-family: tahoma; font-size: x-small; color: #333333;">
<br />
<asp:Label ID="Label8" runat="server" Text='<%# Eval("fbitmap") %>' Visible="False"></asp:Label>
<asp:Label ID="Label9" runat="server" Text='<%# Eval("favorito") %>' Visible="False"></asp:Label>
<asp:Label ID="Label10" runat="server" Text='<%# Eval("nomfam") %>' Visible="False"></asp:Label>
<br />
<asp:Label ID="Label11" runat="server" CssClass="style19" Font-Bold="True"
Font-Size="Small" ForeColor="green" Text='<%# Object.Equals (Eval("pvp10"), Eval("Exist1")) ? "" : "En Stock" %>'></asp:Label>
<asp:Label ID="Label12" runat="server" CssClass="style19" Font-Bold="True"
Font-Size="Small" ForeColor="red" Text='<%# Object.Equals (Eval("pvp10"), Eval("Exist1")) ? "Consulta Disponibilidad" : "" %>'></asp:Label>

</span>
</td>
</tr>
<tr>
<td colspan="2"><span style="font-family: tahoma; font-size: x-small; color: #333333;">
<asp:Label ID="Label13" runat="server" Text='<%# Eval("descrip") %>'></asp:Label>
<div align="right">
<asp:HyperLink ID="HLVOLVER" runat="server" NavigateUrl="javascript:history.back(1)" ForeColor="White" Font-Underline="False" Font-Names="tahoma" BorderStyle="Outset" BackColor="#0000CC" Font-Size="12px">
&nbsp;Volver&nbsp;
</asp:HyperLink></a>
</div>

</td>
</tr>
</table>
<span>
</div>
</ItemTemplate>
<AlternatingItemTemplate>
<div ID="itemPlaceholderContainer" runat="server">
<span ID="itemPlaceholder" runat="server" />
<table class="style3" height="390">
<tr>
<td>
<asp:HyperLink ID="HyperLink14" runat="server"
NavigateUrl='<%# Eval("codigo", "productosdetalles.aspx?codigo={0}") %>'
Target="_self" BorderStyle="None">
<asp:Image ID="Image2" runat="server"
Width="290px"
Height="290px"
ImageUrl='<%# Eval("fbitmap") %>'
AlternateText='<%# Eval("nombre") %>'>
</asp:Image>
</asp:HyperLink>
</td>
<td valign="middle" align="left" width="600">
<span style="font-size: x-small; font-family: tahoma;">Código:
<asp:Label ID="Label3" runat="server" Text='<%# Eval("codigo") %>'></asp:Label>
</span>
<br />
<span style="color: #006B94; font-weight: bold; font-family: tahoma; font-size: 10pt;">
<asp:Label ID="Label4" runat="server" Text='<%# Eval("nombre") %>'></asp:Label>
</span>
<br />
<span style="font-family: tahoma; font-size: 12pt">
<br />
<span style="font-family: tahoma; font-size: 12pt; color: #CC3300; font-weight: bold;">
<asp:Label ID="Label5" runat="server" Text='<%# Eval("pvp1iva","{0:C2}") %>'></asp:Label>
</span>
<span style="font-family: tahoma; font-size: 8pt">Iva Incluído.</span>
<br />
<span style="font-family: tahoma; font-size: 10pt; color: #CC3300; font-weight: bold;">
<asp:Label ID="Label6" runat="server" Text='<%# Eval("pvp2iva","{0:C2}") %>' Visible="false" ></asp:Label>
</span>
<span style="font-family: tahoma; font-size: x-small; color: #333333;">
<br />
<asp:Label ID="Label8" runat="server" Text='<%# Eval("fbitmap") %>' Visible="False"></asp:Label>
<asp:Label ID="Label9" runat="server" Text='<%# Eval("favorito") %>' Visible="False"></asp:Label>
<asp:Label ID="Label10" runat="server" Text='<%# Eval("nomfam") %>' Visible="False"></asp:Label>
<br />
<asp:Label ID="Label11" runat="server" CssClass="style19" Font-Bold="True"
Font-Size="Small" ForeColor="green" Text='<%# Object.Equals (Eval("pvp10"), Eval("Exist1")) ? "" : "En Stock" %>'></asp:Label>
<asp:Label ID="Label12" runat="server" CssClass="style19" Font-Bold="True"
Font-Size="Small" ForeColor="red" Text='<%# Object.Equals (Eval("pvp10"), Eval("Exist1")) ? "Consulta Disponibilidad" : "" %>'></asp:Label>
</span>
</td>
</tr>
<tr>
<td colspan="2"><span style="font-family: tahoma; font-size: x-small; color: #333333;">
<asp:Label ID="Label13" runat="server" Text='<%# Eval("descrip") %>'></asp:Label>
<div align="right">
<asp:HyperLink ID="HLVOLVER" runat="server" NavigateUrl="javascript:history.back()" ForeColor="#000099" Font-Underline="False" Font-Names="tahoma">
<asp:Button ID="Button1" runat="server" BackColor="#064B9C"
BorderColor="#FFFF99" BorderStyle="Outset" Font-Names="tahoma"
ForeColor="White" Text="Volver" />
</asp:HyperLink></a>
</div>

</td>
</tr>
</table>
<span>
</div>
</AlternatingItemTemplate>
<EmptyDataTemplate>
<table align="center">
<tr>
<br />
<td align="center" style="font-family: tahoma">
Realiza nueva busqueda.
<br />
<asp:Image ID="Image1" runat="server" ImageUrl="Imagenes/EnConstruccion.jpg" Width="400"/>
</td>
</tr>
</table>
</EmptyDataTemplate>
<LayoutTemplate>
<div ID="itemPlaceholderContainer" runat="server" style="">
<span ID="itemPlaceholder" runat="server" />
</span>
</div>
</LayoutTemplate>
</asp:ListView>
  #2 (permalink)  
Antiguo 14/01/2012, 20:56
Avatar de GORI0056  
Fecha de Ingreso: julio-2009
Mensajes: 38
Antigüedad: 14 años, 8 meses
Puntos: 3
Respuesta: Carrito de compra para formulario listview

Me seria muy importante la ayuda. ¿De veras nadie me podria orientar?.

Etiquetas: c#, carrito, compra, listview
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:24.