user controls - Sharepoint-customizing usercontrol property in smartpart -


if having idea how customize properties in smartpart. have created usercontrol , m wrappin in smartpart.i want upload xml document library.

private string feedxml;         [browsable(true),         personalizable(true) ]           public string feedxml         {                         { return feedxml; }              set             { feedxml = value; }         } 

and using //

feedxml="\customxml.xml";     xpathdocument doc = new xpathdocument(server.mappath(feedxml)); 

but thing not working . when clicking on modify shared webpart of sharepoint page not rendering. clue m getting wrong.

you might want verify result of server.mappath statement. c:\inetpub... code trying retrieve file filesystem lives in sharepoint because have uploaded document library.

if want file you'll have retrieve using sharepoint object model, have @ getfileasstring method.

i agree denni..

seems smartpart making more difficult? advantages have?

i make own webpart containers ascx controls.. little work , control need. no problems trust settings either.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -