@{ acartuchos.fSeguridad("codigo"); string sucursal = Session["sucursal"].ToString(); if (Session["choping_orden"] != null) { List Carrito = new List (); Session["choping_orden"] = ""; Session["choping_orden"] = Carrito; } else { List Carrito = new List(); Session["choping_orden"] = ""; Session["choping_orden"] = Carrito; } string texto = ""; var db = WebMatrix.Data.Database.Open("cweb"); try { texto = Request.QueryString["s"].ToString(); } catch (Exception ex) { texto = ""; } var sSQL = ""; if (texto != "" && texto != "*") { sSQL = "SELECT * FROM clientes WHERE sucursal = '" + sucursal + "' AND (nombre LIKE '%" + texto + "%' OR correo LIKE '%" + texto + "%' OR rfc LIKE '%" + texto + "%') "; db.QuerySingle(sSQL); } else if (texto == "*") { sSQL = "SELECT * FROM clientes WHERE sucursal = '" + sucursal + "'"; db.QuerySingle(sSQL); } }

VENTA DE MOSTRADOR

@{ try { foreach (var row in db.Query(sSQL)) { } } catch (Exception ex) { string nada = ""; } db.Connection.Close(); db.Close(); db.Dispose(); }
NOMBRE RFC CALLE TELEFONO COLONIA CORREO
MOSTRADOR VENTA ANONIMA
@row.nombre @row.rfc @row.calle @row.exterior @row.interior @row.tel1 @row.colonia @row.correo