|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Any advantage to FormView?Hi;
Is there any advantage to using FormView instead of just having 3 aspx files, one each for view, update, and insert? You basically end up with 3 seperate forms (templates) inside FormView so it seems to me it doesn't make much difference. And I can't find a way to get access to any controls in the <InsertItemTemplate> so seperate aspx files have the advantage in my case that they work. ??? As I stated in another thread, there is no data available from the
InsertItemTemplate because it is what you're using to add the data to the database. -- Show quoteHide quoteChristopher A. Reed "The oxen are slow, but the earth is patient." "David Thielen" <thielen@nospam.nospam> wrote in message news:5721CEA4-154C-46C6-A218-B375A3C9F035@microsoft.com... > Hi; > > Is there any advantage to using FormView instead of just having 3 aspx > files, one each for view, update, and insert? You basically end up with 3 > seperate forms (templates) inside FormView so it seems to me it doesn't > make > much difference. > > And I can't find a way to get access to any controls in the > <InsertItemTemplate> so seperate aspx files have the advantage in my case > that they work. > > ??? > > -- > thanks - dave > david_at_windward_dot_net > http://www.windwardreports.com > Hi;
That wasn't my question here. My question was is there any advantage to useing FormView. As to the other part, I understand the controls won't have data in them until they are filled in. My problem is that the controls themselves can't be found (they are in the browser) and I need the MultiView and RadioButton to set which view is displayed. Show quoteHide quote "Christopher Reed" wrote: > As I stated in another thread, there is no data available from the > InsertItemTemplate because it is what you're using to add the data to the > database. > -- > Christopher A. Reed > "The oxen are slow, but the earth is patient." > > "David Thielen" <thielen@nospam.nospam> wrote in message > news:5721CEA4-154C-46C6-A218-B375A3C9F035@microsoft.com... > > Hi; > > > > Is there any advantage to using FormView instead of just having 3 aspx > > files, one each for view, update, and insert? You basically end up with 3 > > seperate forms (templates) inside FormView so it seems to me it doesn't > > make > > much difference. > > > > And I can't find a way to get access to any controls in the > > <InsertItemTemplate> so seperate aspx files have the advantage in my case > > that they work. > > > > ??? > > > > -- > > thanks - dave > > david_at_windward_dot_net > > http://www.windwardreports.com > > > > > Hi Dave,
IMO, FormView control help us make all the works done in a single page instead of spreading it among mulptile pages, and sometimes it is much easier to make the code logic and communication between different controls on single page than among mulptile pages. Also, FormView can work well with datasource control and provide some standard postback events which can make our developing on such task more standardized. Regards, Steven Cheng Microsoft Online Support Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.) I haven't needed the communication between controls from different modes yet
- but that is a very good point. Show quoteHide quote "Steven Cheng[MSFT]" wrote: > Hi Dave, > > IMO, FormView control help us make all the works done in a single page > instead of spreading it among mulptile pages, and sometimes it is much > easier to make the code logic and communication between different controls > on single page than among mulptile pages. Also, FormView can work well > with datasource control and provide some standard postback events which can > make our developing on such task more standardized. > > Regards, > > Steven Cheng > Microsoft Online Support > > Get Secure! www.microsoft.com/security > (This posting is provided "AS IS", with no warranties, and confers no > rights.) > > Actually, what I mean is we can make other controls on the same web page
communicate with Formview. Also, share status between different mode in formview is also possible since in the same page they share the viewstate. regards, Steven Cheng Microsoft Online Support Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
Launch a new browser window
Creating N rows of controls ObjectDataSource ... could not find a non-generic method ... that has parameters: ... GridView, sorting, DataTable, and typing. How to add a dropdownlist to the column header in a GridView? enable/disable text box based on dropdownlist via javascript post-back when the filename to upload changes PostBack and dynamically created controls newbie arrgh! - hiding cancel button on datagrid edit column Ink |
|||||||||||||||||||||||