InfoPath project in .NET
I created InfoPath project in .NET (c#). I add to the project an application config (App.config) file. In the App.config file I have this code:
<configuration>
<appSettings>
<add key="ListName" value="MyForms" />
</appSettings>
</configuration>
In the form's code I have this code:
string listname=System.Configuration.ConfigurationSetting s.AppSettings["ListName"];
this.thisXDocument.UI.Alert(listname);
But I get nothing in the alert!!!
What is the problem? why can I work with config
|