i created one treeview using asp.net in populate method.
Master page: I have this treeview in master page to show in all pages.
+(iconimage)Football................................football id is =1.
+(iconimage)volleball................................volleyball id is =2.
iconimage = i am taking image from database (which is in byte 0xFFD8FFE000104A4649460001010.....)
using below query: "select iconimage from tablename where footballid=1"
and then i am converting it as image using drawing.image bitmap concept.
everything works fine.
the problem is , when i redirect to next page or child page, It works good. but again that select query gets invoked and shows iconimage. so, when i rediect to some other child page, again that select query gets invoked and shows iconimage in treeview.
how to avoid select query and connecting database again and again which is working the same job.
jsut f ...
Go to the complete details ...