EditItem in ListView - doesn't load edit template
<p>Howdy,
I don't know if it is a known issue - but when I click on the Edit button once - the server reloads the listview - when I click on the edit button once again I receive the EditTemplate and I'm able to edit the list view ... is this is a known behaviour?</p>

<p>Furthermore: The c# behind is working through the full editing cycle ( loads the special editing data ) - but I still only see the usual "view".</p>

<p>//Added some meat to the question</p>

<pre><code>public void test_ItemEditing(Object sender, ListViewEditEventArgs e)
{
    // returns the current key
    DataKey currentDataKey = speiseplanListView.DataKeys[e.NewEditIndex];

    // fetches the information - for the whole plane
    DataTable speiseplan = getSpeiseplan(0);
    DataTable preisgruppen = getPreisgruppen();

    extractTags(speiseplan);
    extractPreise(speiseplan, preisgruppen);
    speiseplanListView.DataSource = speiseplan;
    speiseplanListView.DataBind();
}
</code></pre>

<p>This is the edit function - which gets called once the user presses the "edit" button --- it's completed on both tries .. however only the second try returns the "EditItemTemplate".</p>

<p>The page_load function is rather unnecessary for the edit event - since the edit event is a postback event - so the page load gets skipped in both cases.</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    if (Session["USERID"] == null)
    {
        FormsAuthentication.SignOut();
        FormsAuthentication.RedirectToLoginPage();
        Session.Abandon();
    }
    else
    {
        this.kantinenID = Convert.ToInt32(Request["id"]);
        this.userID = Convert.ToInt16(Session["USERID"]);
        if (IsPostBack == false)
        {
            try
            {
                switch (Request["action"])
                {
                     ...                  
                }
            }
            catch (System.FormatException ex)
            {
              ...
            }
        }
    }
}
</code></pre>
