c# - What to use in this SqlDataAdapter? -
i have sqldataadapter looks like:
("select prodid, catalogtype, prodname, catid, integration, itemprofilecatalogid shoppingcart t1 inner join itemcatalogprofile t2 on t1.catalogtype = t2.catalogtype sessionid = '" + session["id"] + "' , catalogid ='" + session["customer"] ....)
there few more included in statement, 1 cannot seem work is:
itemprofilecatalogid ..
i need include narrow down items down 1 of each , variable if can figure out use in statement.
i've tried
viewstate[""] request.querrystring[""] session[""]
and cant seem work..
the problem having is, current shopping cart if not have item filter, return every instance of particular product in database because there 250 listings of 1 item different catalogs, , itemprofilecatalogid comes in, filter down 1 item
any suggestions?
thank you
catalogid
numeric , using string in sql statement.
it have syntax error in sql statement not detectable string concatenation going on or due catalogid
containing naughty character ('
example)
also, please check out parametrized queries; concatenation when building sql statements not idea (sql injection).
Comments
Post a Comment