I have a ListView in which i have a function that creates images for users. I pass userGender,userImage1name,userIsImage1Aprooved values to the function in which i generate image. ie. if user has approved image i return it back, otherwise i return default image based on gender.
My question is, is there any way to avoid passing 3 parameters to that function and to pass whole DataRow so i can get values of columns i need?
In reality i pass about 12 parameters just made it easy for you.
ie. i want to achieve something like that <%# GetImage(Container.Item) %> while in GetImage() i would be able to access Item("some_column_name") or C# version Item["some_column_name"].