Define connection strings in sharepoint -


i'm new sharepoint. i'm trying connect sql database inside sharepoint webpart using spsqldatasource. code working well. need set connectionstring without refering web.config

is there way define in variable kind of thing in sharepoint, user can define connectionstring in ui without editing web.config file. ?

if want every webpart, web part custom property.

for example:

    [webbrowsable(true),     webdisplayname("connectionstring"),     webdescription("the connectionstring."),     personalizable(personalizationscope.shared),     category("yourcategory"),     defaultvalue("")]     public string connectionstring { get; set; } 

it show sharepoint-option. think there better solutions out there, because have set every webpart , user needs permissions editing webparts.


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -