简体   繁体   中英

FormView insert, edit, update without datasource

I would like to have gridviews or formviews to do the edit/insert/delete functionality but without the use of Sqldatasource in the aspx file.

I have the datasource wired up but the edit mode does not fire. I've tried with an external linkbutton to raise the mode change, as well as with the link button inside the ItemTemaplate but non of them worked (unless I added a SqlDataSource.

I understand that I have to code the BLLs and DALs, which I already have but I'm having difficulties with the CommandName objects. How do I capture this event?

I certain this has been addressed before but most of my searches only revealed ways using SqlDatasource or objectDataSource.

Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM