hi craig,
thanks for the inputs...
yeah, i've tried the hardcoded connectiong string... but it's not really the
ideal thing to do...
then as i really checked the code segment [1] FederationConfiguration config
= new FederationConfiguration(); then config.NamespaceMappings does not get
anything... this is in the SqlNamespaceProvider.cs... then i've discovered
that it should have been FederationConfiguration config =
Federation.Application.FederationConfiguration; and since, we cant have this
in the SqlNamespaceProvider.cs, so leave that file and have [2] in the
EditProvider.aspx.cs... and this solves my problem... i can now get the
loaded connection string (from flexwiki.config file)... then hid the field
for the connection string and have it set to the DefaultedConnectionString
value :)
my concerns now craig are:
1. still in adding new namespace, how can we pass thru the selecting of
namespace provider type? since, we will only be for all db...
2. then can we possibly set that all new created namespaces be read-only by
default? then there would be a authorization field appended on the
ShowTypeDetailsForm(string providerID) of editprovider.aspx.cs, wherein the
user (the administrator specifically) can set who then can have read and
write access... ?
many thanks,
helen
[1]
private string DefaultedConnectionString
{
get
{
FederationConfiguration config = new
FederationConfiguration();
NamespaceProviderParameter parm = new
NamespaceProviderParameter();
foreach (NamespaceProviderDefinition provider in
config.NamespaceMappings)
{
foreach (NamespaceProviderParameter each in
provider.Parameters)
{
if (each.Name == "ConnectionString")
{
parm = each;
break;
}
}
}
return parm.Value;
}
}
[2]
private string DefaultedConnectionString
{
get
{
FederationConfiguration config =
Federation.Application.FederationConfiguration;
NamespaceProviderParameter parm = new NamespaceProviderParameter();
foreach (NamespaceProviderDefinition provider in
config.NamespaceMappings)
{
foreach (NamespaceProviderParameter each in provider.Parameters)
{
if (each.Name == "ConnectionString")
{
parm = each;
break;
}
}
}
return @"" + parm.Value;
}
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users