Click here to Skip to main content
15,895,779 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am having trouble using the output cache param in an aspnet 2.0 page directive. I am using a session variable to hold the value of the selected image. It seems that the dynamic control in a datalist, is not working when the output cache is set to true in the page directive. Is there a way to cache the images seperately to avoid using a page directive?

datalist code

" RepeatColumns="6" CellPadding="8" CellSpacing="8" GridLines="Both" SelectedItemStyle-BackColor="#33ff66" OnSelectedIndexChanged="dtlImages_SelectedIndexChanged" OnItemCommand="dtlImages_ItemCommand"> ' Runat="server">
' ID="lblDescription" Font-Bold="True" Font-Size="12px" Font-Names="Arial">

code that retrieves the image from the database

protected void Page_Load(object sender, System.EventArgs e) { string strImageID = Request.QueryString["id"];
Posted
Updated 10-Nov-15 2:32am
v2
Comments
Patrice T 8-Nov-15 11:57am    
Same question come back on a regular basis. Question still inappropriate here.
Expect same faith (question removed because inappropriate)

this place is to help you when you are stuck on your code, not to do your work.
Kornfeld Eliyahu Peter 8-Nov-15 13:57pm    
What part do you missing? The RFID handling or the SMS?
F-ES Sitecore 8-Nov-15 16:20pm    
We're not here to complete your assignments for you.

1 solution

The only "solution" you get is the one you write yourself. Just picking up the code from somewhere and turning it in is just going to get you a failing grade and a complete failure in the job market.

As for suggestions, this is pretty straight forward stuff. If you're having problems with this project I suggest you talk to your prof.
 
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