Click to See Complete Forum and Search --> : [RESOLVED] DetailsView only for adding record.


toraj58
November 26th, 2008, 02:40 AM
i have a detailsView in my page that i want use it only for adding record to database (not viewing).
i want that when the page was loaded DetailsView be in Insert Mode (saving user from clicking on new button); how i can do it?

this will save my time to getting input from several text boxes and using SQL Parameters and bela bela bela...

toraj58
December 30th, 2008, 03:22 AM
i went this approach:


DetailsView1.ChangeMode(DetailsViewMode.Insert);


i don't know is it the best or not!

toraj58
December 31st, 2008, 11:41 AM
i think that approach is fine; so i mark the thread as resolved.
if there was any idea please reply.