answermyquery.com
http://www.answermyquery.com/

custom application setting in the web condiguration
http://www.answermyquery.com/viewtopic.php?f=5&t=2511
Page 1 of 1

Author:  prince [ Sun Nov 22, 2009 12:56 pm ]
Post subject:  custom application setting in the web condiguration

Code:
<customAppSettings>
    <generalSettings>
      <add key="UploadFolder" value="Images" />
      <!-- Usage of file is Mb value *1024 * 1024 e.g. 5Mb = 5242880b -->
      <add key="lMaxFileSize" value="2097152" /><!-- specified in bytes -->
    </generalSettings>
    <databaseSettings>
      <add key="connectionString" value="Data Source=10.10.1.153;Database=figures;User id=user1;password=pass1" />
    </databaseSettings>
</customAppSettings>


could anyone tell me where 2 put dis under in ma web.config file. If i
did just paste it in it n give the errors.
Thanks in advance.

Author:  kranthi reddy [ Sun Nov 22, 2009 12:57 pm ]
Post subject:  Re: custom application setting in the web condiguration

Just put da <add key ... > sections in da existin <appSettings>
section.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/