CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: Date Entered: 12/11/2007 2:38:22 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 0 Views: 34 Favorited: 0 Favorite
1 Items, 1 Pages 1 |< << Go >> >|
"eraza" <>
NewsGroup User
property assignments lost from catalog zone12/11/2007 2:38:22 AM

0

Hey there folks. I've got a page with some zones on it, and some stock web parts. A lot of them are the same user control that implements IWebPart; just a basic home grown rss viewer. The control has some public properties (beyond those from IWebPart), and looks something like this:

                    <ZoneTemplate>
                        <asp:DeclarativeCatalogPart ID="DecParts" runat="Server">
                        <WebPartsTemplate>
                        <Uc:Rss ID="UcVideo" runat="server" EnableDescription="true" AllowRssUrlChange="false" TitleText="Videos" RssUrl="http://video.google.com/videofeed?type=search&q=sailing+genre%3ASPORTS+OR+type%3ASPORTS&so=0&num=20&output=rss" />
                        </WebPartsTemplate>
                        </asp:DeclarativeCatalogPart>
                    </ZoneTemplate>

So far, so good. The problem is that the public properties of EnableDescription and RssUrl are "lost" once someone takes it from the catalog and adds it to the page. Now that I take the time to write this out, I'm guessing that through the action of adding this webpart to a zone, the interface is added to the zone, not the user control (if you know what I mean), and as such only the things left from the interface would be available?

It's just weird because if I put this into an already existing zone, it works like a champ. But try to add it from a catalog and I get an exception that the rssurl doesn't exist when the rss control goes to get the goods from google.

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:













where are the users?

page security

problems with response.redirect and cookie userdata during login on 2.0

problems using forms authentication with active directory in asp.net 2.0

sql server 2000 with visual studio .net 2005

config error////

how to create a user with question and answer?

help

firewall blocking cookies

access user's local machine's info

adminportal logged user changing

redirect user to login page if he ...

processmodel /aspnet_setreg.exe problem

login not working correctly

securing my site -- private keys, connection strings, ftp

how to trace client machine's ip address routed through a gateway

retrieve data from aspnetdb.mdf problem

help membership not requnized

problem on using custom role provider

dynamic logout button

seperate membership database and application database? is ok?

security trimming enabled

to avoid dangerous user inputs in web forms

starting form based authentication

authenticating active directory users

two login forms using memership api

can't create folder in network share

using network account in web.config

formsauthentication and name masking

identify user - asp.net 2.0

export validationkey

how to avoid sql injection in already available asp.net application

asp.net error remote only , off, and on

setting membership/profile/role provider's connection string at runtime...?

membership role provider for multiple databases

password hashing advice

create a new user

accessing the next button on the createuserwizard

how do i force users to use a form-based login before accessing a non-asp.net file?

2 questions, auto grant rolls and delete files

add user to two roles

problems with aspnet_setreg process

restrict static file access (e.g. pdf, xml)

the login control and access databases - vb

[q] can table in aspnetdb been configure ?

multiple pages per user with redirect or make invisible per user ?. some advice please.

access to unc resources after integrated windows authentication

securityrelated question asp.net 2.0 formsauthentication.

createuserwizard giving duplicate users

administrator role redirect to default.aspx

   
  Privacy | Contact Us
All Times Are GMT