skip to content »



I'm binding my Formview to objectdatasource i tried upload images on Item Inserting & on Item Updating but no luck..Find Control() didn't work and can't find my file Upload control.. I just upgraded to 2 and find to much problems with Find Control() in template controls..

I am using example from this page:-- to access controls of a "Details View1" dug deep inside many levels in a Rad Grid?So far, I have been messing with the on Item Updating and on Item Deleting events but I can't seem to get the values from the item properly. I used the code from Imar's book to create a guid and store the file in the project on the server.I need to get the the id of the item and the filename from the control so I can update the new filename in the database and I would like to get the old filename so I can delete it off the server. S - I know this is a lot to ask, but would it also be possible that when they press the edit button that the file upload control will already have the original file loaded into into it?On click of Edit, Cancel, Update, Insert methods different events like method retrieves the records from the database and populates to the List View.Full Name: Sheo Narayan Member Level: Honorary Platinum Member Status: Administrator Member Since: 7/8/2008 PMCountry: India Regards, Sheo Narayan MVP, Author, Writer, Mentor & architecting applications since year 2001.and also i face too many problems with objectdatasource I'm use Form View for editing a photo gallery...

I add File Upload control to upload images to the Gallery.

Trim(); Date Time date = new Date Time(); date = Date Time. Parse Exact(sch Datee, "MM/dd/yyyy", null); string Date String = date. Its like if i am changing the date of the row during update,the details are getting updated.

date", Date String); Text Box txtdate= (Text Box)lstvw Inquiry Log Details. Parse Exact(sch Datee, "dd/MM/yyyy", null); // date = Date Time. if the date is 28/02/2018(listview)(edited the date from 2/28/2018 to 28/02/2018),it is updating the details of the row.

If someone can show me how to get this working than I should have no trouble getting the id from the on Item Deleting event so that I can also delete the file from the server when the item gets automatically deleted from the listview. The reason why I ask is because when they click edit, the file upload control is blank so if they just wanted to edit some other fields they would have to re-upload the file again.

I just want it so that they could upload a new file if they want but if not, the original file would still be uploaded.

This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. I would also like to delete the file off the server when they press the delete button.