|
| Usercontrols in Sharepoint Pages WSS 3.0 |
 |
Sat, 18 Nov 2006 07:10:37 +000 |
UserControls in Sharepoint pages showPicture("11/17/2006 5:55:38
PM",0,0,0,47484,76) I have upgraded my site from WSS 2.0 to 3.0. I have
also upgraded the code from .Net 1.1 to .Net 2.0.
I am facing one problem with usercontrols. I have some usercontrols which I have
placed in sharepoint pages like Allitems.aspx, editform.aspx etc. In my code
there are
Type 1. Some Usercontrol which just shows images etc, and not much code is
written for them
Type 2. Some usercontrols which contains functionality, also they are coded with
custom property using Get.. Set blocks..
Now in my allitems.aspx page, Type 1 user controls run with out problem but Type
2 if I specify tag like
<Ctrl:MyCtrl id = "PQR" runat="server" title =
"Test"/> then it does not work. But If i specify tag like
<Ctrl:MyCtrl id = "PQR" runat="server" /> it works
fine . That means somehow its not supporting those custom properties defined in
code.. For me I need to have the expected functionality with all properties
supported..
Any guesses why this is happening? Any resolution? I have registered the
directory of usercontrols in SafeControls attribute of Web.config, any this else
I have to do?
Please let me know, thanks in advance...
Subhash
|
| Post Reply
|
|
|
|
|
|
|
|
|
|