Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Custom Section Handler for array of complex objects

Reply
Thread Tools

Custom Section Handler for array of complex objects

 
 
towerjj@hotmail.com
Guest
Posts: n/a
 
      07-25-2007
hi all,

I need a configuration file mapped to a class in my web app. It is an
array of a class, in XML something like this:


<ArrayOfRole>
<Role>
<name>r1</name>
<sections>
<string>bb</string>
</sections>
</Role>

<Role>
<name>r1</name>
<sections>
<string>bb</string>
<string>cc</string>
<string>xx</string>
</sections>
</Role>

</ArrayOfRole>


In a winform context I would use
System.Xml.Serialization.XmlSerializer whereas In web app context I
should use configuraction section of web.config file.

I'm really blocked in implementing the appropriate Custom Section
Handler.

Is there a better solution to my problem?
If no, does anyone have an sample?

Thanks in advance.

 
Reply With Quote
 
 
 
Reply

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
Encrypt custom web.config section / cannot load custom handler? MichaelS ASP .Net Security 0 11-22-2006 04:11 PM
Writing a custom section handler for browserCaps Andy Emmerson via .NET 247 ASP .Net 1 06-11-2004 02:22 AM
Using a custom section handler in place of HttpCapabilitiesSectionHandler Andy ASP .Net 0 06-09-2004 02:28 PM
Custom Section Handler XML parsing Hazzard ASP .Net 1 05-25-2004 11:43 AM
Custom Config Section Handler =?iso-8859-1?Q?S=F8ren_Lund?= ASP .Net 0 05-11-2004 12:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57