コード例 #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
ファイル: edit_ren.aspx.cs プロジェクト: ozotony/patent
    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>");
    }