G
Guest
I'm working on an ASP.Net web app using VS2005 and the .Net 2.0 framework,
and I have a serious problem with the page I'm currently working on. The page
has, among other things, two FormViews and a GridView control, each with its
own SqlDataSource. FormView1 talks to my Opportunity table and has an
ItemTemplate and an EditItemTemplate. FormView2 talks to my Activities table
and has an ItemTemplate, InsertItemTemplate and an EditItemTemplate. The
GridView only reads data from the Activities table and does not appear to
affect this problem. All of the controls read from the tables with no problem
and switch modes with no problem, but when going into Update mode, changing
something and clicking the Update button, it does not save the information to
the tables. As far as I can tell, the problem is that the program is not
passing updated information to the NewValues array that you can access from
the ItemUpdating event args. This is driving me nuts. The code and markup
looks fine to me, in fact I have a page with similar information on it that
works fine. Any ideas?
and I have a serious problem with the page I'm currently working on. The page
has, among other things, two FormViews and a GridView control, each with its
own SqlDataSource. FormView1 talks to my Opportunity table and has an
ItemTemplate and an EditItemTemplate. FormView2 talks to my Activities table
and has an ItemTemplate, InsertItemTemplate and an EditItemTemplate. The
GridView only reads data from the Activities table and does not appear to
affect this problem. All of the controls read from the tables with no problem
and switch modes with no problem, but when going into Update mode, changing
something and clicking the Update button, it does not save the information to
the tables. As far as I can tell, the problem is that the program is not
passing updated information to the NewValues array that you can access from
the ItemUpdating event args. This is driving me nuts. The code and markup
looks fine to me, in fact I have a page with similar information on it that
works fine. Any ideas?