Hi,
I want to make Image Gallery for products By Category
for example clothes, books,...
I want doing it with the help of this two links
Image-Gallery-using-ASP.Net-DataList-Control-Part-I
Image-Gallery-using-ASP.Net-DataList-Control-Part-II
without Category it works fine
but I changed this line
FROM tbl_product ) AS tbl WHERE Row >= '
to
FROM tbl_product ) AS tbl WHERE cat_id=@cat_id Row >= '
and
I added
@cat_id int,
in this section
ALTER PROCEDURE [dbo].[spx_Pager]
@PageNo int = 1,
@ItemsPerPage int = 10,
@TotalRows int out
and this
cmd.Parameters.Add("@cat_id", SqlDbType.Int).Value = 15;
in this section
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@PageNo", SqlDbType.Int).Value = PageNo;
but I face this message in shoppingGallery.aspx page
Must declare the scalar variable "@cat_id".
so I moved this
@cat_id int,
here
DECLARE
@cat_id int,
@StartIdx int,
@SQL nvarchar(max),
and now I face this message
Procedure or function spx_Pager has too many arguments specified.
what's my mistake? what's the solution?