GridView, FormView Edit/update feature not giving new vaules

Hello.
I am using ASP.NET 2.0 for this.
I have a gridview that loads information from a datatable.
this datatable gets its data from reading an xml file(stream)
The gridview loads the information just fine. The edit button works, And when clicking edit, all values turn to textboxes for editing. Great.
When i click update, I get nothing back.
With a gridview, your supposed to get a dictionary with the old values, and the new values.
e.NewValues and e.OldValues.
But, the count is always 0, the values are always null.
Nothing is comming back.
So I've decided to use a formview.
I really need to use the formview anyways for custom display.
When using the formview, I have the same problem.
I even decided I would use the FindControl method to just get the value of the textbox
This is passing the oldvalues always, not the new.
This is a problem with databinding I am sure.
If anyone can help please let me know.
I can post code if requested.
Thanks
shane
bugnukerAsked:
Who is Participating?
 
CetusMODCommented:
PAQed with points refunded (300)

CetusMOD
Community Support Moderator
0
 
nehayaCommented:
in GridView, are your sure that your UPDATE is enables and correct?

0
 
bugnukerAuthor Commented:
yes. i am sure.
i decided to screw it all and did some crappy code to make a formview work.
i have it working now and dont feel like changing it to the right way if it will ever work.
someone told me its becuase i am not using a real datasource (like sql) or somethign, i am using a dataset thats reading an xml file
dunno why that would be the problem but whatever.
thanks for the effort.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
bugnukerAuthor Commented:
ADMINS: PAQ AWNSERED
0
 
nehayaCommented:
in sql,
See this very greate, fast and easy tutorial!

Video - Developing ASP.NET 2.0 Applications using "Atlas"
by Scott Guthrie, General Manager, .NET Development Platform
Page: http://atlas.asp.net/Default.aspx?tabid=47 // the page
To download: http://download.microsoft.com/download/8/5/8/85803fdd-fe9a-4783-ab37-e0c565172ffd/asp_net_atlas.wmv
0
 
bugnukerAuthor Commented:
TheLearnedOne:
On April 27th, 2006, I posted ADMINS: PAQ AWNSERED.
Meaning, this queston was figured out by me.
So you can close this one, and call is a PAQ.
Thanks!
-Shane
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.