Sometimes we need to use the constants in different parts of our project. We can simply use constant values. But what if after a span of time (months or years) the constant value changes? Then the programmer need to change the constant value on every place where he had used the constant.
One solution to this problem is to set the value of constant in web.config file in the <appSettings> tag.
Then we can access this value at code file wherever we require.Let me explain it with example.
Put the following code inside your web.config file:-
Now to access this values inside the code file write the following code:-
Now wherever you use the value1 and value2 values will be changed whenever you change the value attribute of the key inside <appSettings> tag of the web.config file. You can place the keys and values in separate file and reference it in web.config file Click Here for code.
http://tasya.marinirseo.web.id/
ReplyDeletehttp://caca.marinirseo.web.id
http://anne.marinirseo.web.id/
http://jeannet.marinirseo.web.id/
http://jelita.marinirseo.web.id/
http://brenda.marinirseo.web.id/
http://ruth.marinirseo.web.id/
http://tasya1.marinirseo.web.id/
http://caca1.marinirseo.web.id/
http://anne1.marinirseo.web.id/
http://jeannet1.marinirseo.web.id/
http://jelita1.marinirseo.web.id/
http://brenda1.marinirseo.web.id/
http://ruth1.marinirseo.web.id/
http://tasya2.marinirseo.web.id/
http://caca2.marinirseo.web.id/
http://anne2.marinirseo.web.id/
http://jeannet2.marinirseo.web.id/
http://jelita2.marinirseo.web.id/
http://brenda2.marinirseo.web.id/
http://ruth2.marinirseo.web.id/
http://ruth3.marinirseo.web.id/
http://jelita3.marinirseo.web.id/
http://brenda3.marinirseo.web.id/
http://jeannet3.marinirseo.web.id/
http://anne3.marinirseo.web.id/
http://caca3.marinirseo.web.id/
http://tasya3.marinirseo.web.id/
http://tasya4.marinirseo.web.id/
http://caca4.marinirseo.web.id/
http://anne4.marinirseo.web.id/
http://jeannet4.marinirseo.web.id/
http://jelita4.marinirseo.web.id/
http://brenda4.marinirseo.web.id/
http://ruth4.marinirseo.web.id/
http://tasya5.marinirseo.web.id/
http://caca5.marinirseo.web.id/
http://anne5.marinirseo.web.id/
http://jelita5.marinirseo.web.id/
http://ruth5.marinirseo.web.id/