Importing UserControl - "Browse Properties" fails... sort of Options
Jaynard
Posted: Tuesday, September 16, 2008 12:44:49 PM
Rank: Newbie

Joined: 9/11/2008
Posts: 8
Location: Sundsvall, Sweden
Hello. I'm facing a weird problem at the moment. I've just installed a brand new v303 installation on my webserver and I've been adding most of the content and everything worked great.

Now I just needed to make a simple UserControl to make a contact form with some basic logic in it, and this is something I've done numerous times with Umbraco and with no problems what so ever.

The problem now is that I can't use my UserControl in my new installation of Umbraco. When I select the ascx in the macro and save and then click "Browse Properties" I see my public properties but when I click "Save properties" I don't get a confirmation message, the popup just turns white aside from the topic "Choose properties from...".

If I click the tab "Parameters" i see my properties there, but the type is "tabPickerMultiple". Sure, I can change this to the correct type and I can go and import the Macro in my content, but when I hit save (or save and publish) I get a JavaScript-error and the next time th wysiwyg tries to load.

Here's the weird part, I've tried to import the same UserControl in other installations of Umbraco on the same machine and it works like a charm, so I'm a bit curious to what might cause this to happen on my latest install. I've set full control to NETWORK SERVICE while I develop so that's not it...

I've also tried to replace my umbraco-files with brand new ones, in case some where broken, but still no luck.

Any ideas?

//J
Arjandb
Posted: Tuesday, September 16, 2008 4:26:54 PM
Rank: Devotee

Joined: 8/31/2007
Posts: 50
Location: Utrecht NL
I think the public properties of the user control must be set in code behind (either in a compiled dll or uncomplied cs/vb file in the App_code folder.

Maybe you forgot to move the DLL or code behind files to your new installation?
Jaynard
Posted: Tuesday, September 16, 2008 4:42:13 PM
Rank: Newbie

Joined: 9/11/2008
Posts: 8
Location: Sundsvall, Sweden
Nope, the DLL are in place. Alltough, now I got it to work but it still doesn't show me a confirmation of the imported properties after i click "Save properties" and I haven't really changed anything, so I'm quite confused why it suddenly decided to work when I used it in my wysiwyg.

And it still works perfectly (including "Save properties"-confirmation) on my other Umbraco sites.

//J

Edit: The "nope" was regarding the DLL:s, not about the "code behind" commend. I do, of course, use public properties in my code behind, and have done so on several other UserControls with no problems what so ever. And thanks for the reply!
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.