1. 程式人生 > >獲取formview裡面的控制元件的值

獲取formview裡面的控制元件的值

tb.Author = ((TextBox)(row.FindControl('AuthorTextBox'))).Text;
        tb.Time = ((TextBox)(row.FindControl('TimeTextBox'))).Text;
        tb.Dropes = Convert.ToInt32(((TextBox)(row.FindControl('DropesTextBox'))).Text);
        tb.PagContent = ((TextBox)(row.FindControl('PagContentTextBox'))).Text;
        tb.Address = ((TextBox)(row.FindControl('AddressTextBox'))).Text;
        tb.Sort = ((TextBox)(row.FindControl('SortTextBox'))).Text;
        MWEB.BLL.Table_ReleaseBLL.Insert(tb);//呼叫業務層中的插入函式,執行插入業務操作