Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# alainb 11/10/2005 1:43 PM
Hi ,
I am currently trying to update a setting stored in the section.Setting from the module controller and i really don't know how to do this.

i can get the setting like this (VB CODE) :
dim _MYSETTING as string = section.settings("MYSETTING")
and i can get it ,
so i change my setting :
section.Settings("MYSETTING") = "something"

now i need to update this from my module controller with the Updateobject function (i suppose) but i really can't figure out how to access the corerepository from this module.
COuld you help me ? Please Please Please (a)
# martijnb 11/10/2005 3:43 PM
I guess this will work:
CoreRepository cr = HttpContext.Current.Items["CoreRepository"] as CoreRepository;
cr.UpdateObject(section);
# alainb 11/10/2005 4:27 PM
Brilliant !!!
It works

(#) Thank you Sir (#)