Пример #1
0
    protected void RenewalListView_ItemCanceling(object sender, ListViewCancelEventArgs e)
    {
        ((ListView)sender).EditIndex = -1;
        List <pt.Renewal> pp = getAddressServiceByID(TextBox6.Text);

        RenewalListView.DataSource = pp;
        RenewalListView.DataBind();
    }
Пример #2
0
    protected void RenewalListView_ItemEditing(object sender, ListViewEditEventArgs e)
    {
        RenewalListView.EditIndex = e.NewEditIndex;
        List <pt.Renewal> pp = getAddressServiceByID(TextBox6.Text);

        RenewalListView.DataSource = pp;
        RenewalListView.DataBind();

        Page page = HttpContext.Current.CurrentHandler as Page;

        page.ClientScript.RegisterStartupScript(typeof(Page), "Test", "<script type='text/javascript'>doEdit();</script>");
    }