Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > What are the IDictionary parameters for DataSourceView.Update meth

Thread Tools

What are the IDictionary parameters for DataSourceView.Update meth

Posts: n/a
I am trying to write a custom control in VS2005 with C#. The control
displays a list of fields bound to a custom object. The display works great,
but I can't figure out the IDictionary values that need to be passed to the
DataSourceView.Update method. My code looks like this:

protected override void PerformUpdate(IShippingAddress dataItem)
dataItem.ShipToMethod = (ShipToMethods) ShipToMethodField.Value;

DataSourceView view = GetData();

// HACK: This is a kludge because we can't find anyone
// that knows how to use these IDictionary parameters
view.Update(new Hashtable() ,
new Hashtable() ,
new Hashtable() ,
new DataSourceViewOperationCallback(delegate(int count ,
Exception exception)
return true;

//Throw an event to inform anyone who cares
OnAddressChanged(new AddressChangedEventArgs(dataItem));

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid cast with IDictionary D Browne ASP .Net 2 06-04-2008 03:07 PM
Re: C"MON NZ COPS ---DO YOUR JOBS! meth lab in auckland and childmolestor--what more do you need? Joe NZ Computing 2 04-16-2008 03:34 AM
How to map IDictionary to repeater? SushiSean ASP .Net 2 01-03-2008 04:40 PM
Class Help, undifined local var or meth Ryan Edwards-Crewe Ruby 0 07-12-2006 04:29 PM
Asynchronous communication and IDictionary.... Robin Mark Tucker ASP .Net Web Services 1 05-26-2006 10:09 AM