Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

HELP! How do you set data in the datasource when using SqlDataSource

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 25 Sep 2007 08:59 GMT
I've been using SqlDataSource for the first time lately. I need to be
able to set a value right before an update and send it off to the
update proc. Ideally, this would be simply updating that field in the
datasource and then letting the gridview update the data.

However, I can't seem to find how to access the data??? I've tried
putting code in the RowCommant event, but the DataSource is null, so I
don't know where else to set data....

Do I need to switch to the ObjectDataSource in order for this to work.

Thanks,
Dave
Eliyahu Goldin - 25 Sep 2007 10:09 GMT
Did you try SqlDataSource.Updating event?

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

> I've been using SqlDataSource for the first time lately. I need to be
> able to set a value right before an update and send it off to the
[quoted text clipped - 9 lines]
> Thanks,
> Dave
Dave - 26 Sep 2007 07:35 GMT
Thank you, this is exactly what I was looking for... I'm kinda new to
this.

I was almost thinking that I needed to swith to an ObjectDataSource or
something

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.