Solved

DataList ItemCommand CommandArgument returning old (cached?) value

Posted on 2006-06-27
2
1,965 Views
Last Modified: 2008-02-01
In ASP.NET v1.1 using VB.NET, I have a DataList, with a column they can click to view details of the row.  Here is the html that creates the linkbutton:

<TD>
      <asp:LinkButton id=lnkView runat="server"
            CommandArgument='<%# DataBinder.Eval(Container, "DataItem.pmwrkord_code") %>'
            CommandName="View">View
      </asp:LinkButton>
</TD>

Then in my VB code in the ItemCommand handler for the datalist, I get the value out with the command:

sWO_code = e.CommandArgument

This has been working for over a year, and still works for most users.  Today, a user emailed me, and when he clicks on View the first time, it works right.  If he then clicks on View for a second row, it shows him the same first row, not the new row.  If I have him delete his temporary internet files (clear his cache), then click on a new row it works right, but if he then clicks on a new row, he gets the row he got right after clearing his cache.

Because this is working for everyone else, I assume this must be something with the setup of his computer.  Rebooting his computer did not fix the problem.  He is not aware of any changes to his system.

Does anyone have any ideas what could be causing this, or have ideas to help me track it down?

Thank you.
0
Comment
Question by:smoee
2 Comments
 
LVL 5

Author Comment

by:smoee
ID: 17003207
Sorry, I diagnosed the problem wrong.  

e.CommandArgument is returning the correct value.  The problem is the page that I open was opening a cached version, and not repopulating using the new value which I had placed in a session variable.

I fixed the problem by telling the page not to chache.
0
 

Accepted Solution

by:
EE_AutoDeleter earned 0 total points
ID: 17143249
smoee,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

EE_AutoDeleter
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question