Solved

DataList ItemCommand CommandArgument returning old (cached?) value

Posted on 2006-06-27
2
1,957 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now