Crasch

Il blog di Carlo Folini
posts - 33, comments - 74, trackbacks - 6846

Custom Configuration in ASP.NET 2.0: tips

Ciao,

un paio di tips collegati al post di Luca

Visto che ci ho perso un po' di tempo ....
Per specificare il nome del tag degli elementi all'interno di "actions" nella classe in cui si implementa la collezione "MyActionCollection" bisogna specificare il nome con la proprietà ElementName.
Es. se volessimo mettere un tag "pippo" (evviva la fantasia)



Altra chicca poco documentata se vogliamo specificare la configurazione in un file separato definiamo la configSection in maniera usuale, ma al posto di inserire l'xml corrispondente direttamente nel app.config o web.config mettiamo un 'placeholder' con l'attributo configSource che ha come valore il nome del file.
es:



Print | posted on venerdì 21 aprile 2006 17.28 | Filed Under [ .Net ]

Feedback

Gravatar

# Lanas big boobs.

Lanas big boobs. Big boobs. Big boobs alert.
14/01/2009 8.03 | Big boobs.
Gravatar

# Cock and ball torture.

Extreme pussy torture. Ice torture bondage sado. Nipple torture. Pussy torture. Cbt torture.
21/01/2009 21.57 | Torture porn.
Gravatar

# Buy diazepam.

Side effects of diazepam. Diazepam side effects. Most popular information about diazepam. Yellow round pill diazepam 5 5619. Diazepam.
23/01/2009 21.39 | Valium side effects diazepam.
Gravatar

# cooling wire

net public action address required burning
10/06/2009 11.21 | cooling wire
Gravatar

# reduced working carbon

business cooling earth unfccc forcing
27/06/2009 17.32 | reduced working carbon

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 6 and 2 and type the answer here:

Powered by: