Question : Stored Proc results not coming out on web page - Visual Web Dev / MSSQL 2008

SP in MSSQL 2008 works - But not working from Visual Web Developer
Question:
I have this SP in SQL which is supposed to get any of the available variables from the query string.  I'm am trying to be able to build a product search from one page that you can filter my adding more variables.

eg.  if only sport is in the query string then only use that variable, if sport and type is in the query string then use both of them.

It work when I run it in the DB but I get nothing when I run it on a page in visual web dev.

In Visual Web Dev I'm using a simple data list with a SQL connection which I have used many times before so I don't 'think' i'm doing anythign wrong with that.

Any help?

here's an examples of the query string variable.
---------------------------------------------------------------

http://localhost:52392/mySite/searchResults.aspx?sport=1

is there an easier way to do this from the beginning?

query string example
--------------------------------
http://localhost:52392/mysite/searchResults.aspx?sport=1

-----------------------
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
USE [aardvark_WetsuitReview]
GO

/****** Object:  StoredProcedure [wetsuit].[wsp_BuildProdSearch]    Script Date: 07/07/2010 19:37:59 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

-- =============================================
-- Author:		nick
-- Create date: 6/7/10
-- Description:	get all product details dynamic type query
-- =============================================
ALTER PROCEDURE [wetsuit].[wsp_BuildProdSearch]
	-- Add the parameters for the stored procedure here
	@prod int = null,
	@season int = null,
	@sport int = null,
	@brand int = null,
	@age int = null

	
	-- exec wsp_BuildProdSearch @prod = 3, @season = 2, @sport = 2, @brand = 1, @age = 1

AS
BEGIN





	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	SELECT DISTINCT a.name, a.price, a.thickness, e.brandName, f.genderAge, LEFT(g.brandProdDesc,150) as brandProdDesc,
	h.img1, h.img2, h.img3, h.img4, h.img5
	from t_product a
		join tx_productType b on a.id = b.productID
			and (b.type1 = @prod or b.type2 = @prod or b.type3 = @prod or b.type4 = @prod or @prod is null)
		join tx_season c on a.id = c.productID
			and (c.season1 = @season or c.season2 = @season or c.season3 = @season or @season is null)
		join tx_sportType d on a.id = d.productID
			and (d.sportType1 = @sport or d.sportType2 = @sport or d.sportType3 = @sport or @sport is null)
		join t_brand e on a.brandID = e.id
			and (a.brandID = @brand or @brand is null)
		join t_genderAge f on a.genderAgeID = f.id
			and (a.genderAgeID = @age or @age is null)
		join t_brandDesc g on a.ID = g.prodID
		join t_images h on a.imgID = h.id
		and a.live = 1
			
END

GO

Answer : Stored Proc results not coming out on web page - Visual Web Dev / MSSQL 2008

Under the Mail options, in Signature, there is an option to set a different signature for "New Messages" and for "Replies/forwards", i would imagine these don't match.
Random Solutions  
 
programming4us programming4us