Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Upadating User data using the OnBeforeInsert of CustomData handler View modes: 
User avatar
Member
Member
Raja Tirumala Rao - 10/1/2010 4:03:13 PM
   
Upadating User data using the OnBeforeInsert of CustomData handler
Hi ,

I am trying to update some fields values in the CMS.User table using the OnBeforeInsert event. After casting the iput Object as SimpleData Class , i see that there are two properties 1) Column Name 2) data , is it sufficient to get the index number from col names and use it to Update the Data in the Data field ? Do we need to update the field values any where else ? Does any one know ?

Thanks & Regards,
Raja Tirumala Rao Guna

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/6/2010 7:14:49 AM
   
RE:Upadating User data using the OnBeforeInsert of CustomData handler
Hi,

I am not sure if I am getting the right meaning, but you ca simply use GetValue(string) and SetValue(string) methods with the column name as parameter.

Best regards,
Juraj Ondrus