Get web.config settings in .aspx or view page.

57
Views
1
Answers

Hi,
How do I get web.config settings in the .aspx page or view page in .NET?

edit | flag
William Patrick
Asked on: Jan 17, 2012 at 8:31PM

1 Answers

99
4
99

Try this

 '%$ AppSettings:Mysettings%>'

Make sure that you use Runat="server" in your tag.

For example :

 `form runat="server" action="action" name="%$ AppSettings:Mysettings%>"/>`
edit | flag
Gokul A
Answered on: Jan 17, 2012 at 8:46PM

Post your Answer

Search

Welcome to Ask Amoeba!
This is 100% free and interactive site for sharing professional Questions and Answers, Opensource projects, Interview questions.
Learners, beginners, Experts stop and share your knowledge and ideas!

Browse Categories

Browse Tags