Problem with ListView

Discussion in 'ASP.NET / ASP.NET Core' started by DJOuk, Mar 18, 2008.

  1. Posted this on ASP.Net forums but thought someone here might have an idea:

    I have a edit button, this works fine, until I add the code that prevents the edit button from being seen by users who did not post that ticket. I cannot understand why this is happening. I get an error on the button says 'object reference not set in instance of object'



    It happens when I add the following code:


     
  2. Use a few simple debug methods since this is with an instance of an object.
    For example, place a textbox on the page and add outputs to it as events fire.
    You should be able to track down the culprit that way.
    Salute,
    Mark
     
  3. Nothing happened, I think it's related to the fact I called the button in listviewitembound. Only problem is, why does it work with the votebutton and not the edit button
     
  4. I really like working with the listview, even created an ajax shoutbox with one.
    And I'm willing to help you get through this, but, I'm so far behind in everything I might pop. [​IMG]
    At any rate, if you get flustered with it I'll try and take a look at the code for ya.
    Salute,
    Mark
     

Share This Page