Click here to Skip to main content
16,021,288 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i have a DataList in my usercontrol, this DataList in different situation have some datasource (some storedprocedure), now in DataList_ItemDataBound event, i want find the productid return (productid is a filed in my database table, this filed return with all my storedprocedure), i khow, i must use e.Item.DataItem, but i don't know how i must use it.
i think i should cast it to a data type, but i don't know which data type
(i use LINQ technology)
i call storedprocedure like this:

var q = db.CatalogGetProductsOnDeptPromo(Int32.Parse(departmentId),
BalloonShopConfiguration.ProductDescriptionLength, 
Int32.Parse(page),
    BalloonShopConfiguration.ProductsPerPage, ref howManyPages);
            DataList.DataSource = q;
            DataList.DataBind();

CatalogGetProductsOnDeptPromo is my storedprocedure
please help me,
regard iman
Posted
Updated 21-Mar-10 5:31am
v3

Have you stepped through with a debugger? It will tell you everything you want to know about the types.

Also, you may want to read this[^]
 
Share this answer
 
thanks BUT
because i use 3 or 4 storedprocedure, my datasource became change, so i don't know which storedporcedure at that time is my datasource
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900