?
Solved

GridView, FormView Edit/update feature not giving new vaules

Posted on 2006-04-27
8
Medium Priority
?
390 Views
Last Modified: 2007-12-19
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
0
Comment
Question by:bugnuker
  • 3
  • 2
6 Comments
 
LVL 6

Expert Comment

by:nehaya
ID: 16555336
in GridView, are your sure that your UPDATE is enables and correct?

0
 

Author Comment

by:bugnuker
ID: 16556120
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
 

Author Comment

by:bugnuker
ID: 16556362
ADMINS: PAQ AWNSERED
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:nehaya
ID: 16556811
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
 

Author Comment

by:bugnuker
ID: 16807190
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
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 16847435
PAQed with points refunded (300)

CetusMOD
Community Support Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month13 days, 16 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question