CodeVerge.Net Beta


   Explore    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: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 5/10/2007 11:34:01 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 116 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
EricJohansson
Asp.Net User
Webpart starting order5/10/2007 11:34:01 AM

0

Hi.

I've got two pretty simple webparts, one contains a treeview, and one displays a literal with some text(it actually does some more things, but none relevant). This text is being read from a connection to the first webpart, which provides the currently selected node. This was working great until recently(I don't know the exact time when this stopped working as a coworker pointed out that it had stopped), when it just died. I slapped in some breakpoints, and I found that the contract variable is being read, and being null, is ignored. Not until after this has happened is the contract variable set to a value by the treeview webpart. My guess is that it's because the second webpart is being started before the first. Does anyone know how I can force the first webpart to start and run first?

Code snippet time!
 

1    protected systeam.evolution.web.webpart.contracts.ISelectedTreeNodeContract Contract {
2                get { return _contract; } // Called first, from CreateChildControls
3                set { _contract = value; } // Called second, from GetInterfaceForConnection(the ConnectionConsumer).
4            }
5    
6            [ConnectionConsumer("Node Consumer", "TreeNodeConnection")]
7            public void GetInterfaceForConnection(systeam.evolution.web.webpart.contracts.ISelectedTreeNodeContract contract) {
8                Contract = contract;
9            }

 Ideas would be greatly appreciated


Best regards,
Eric Johansson
SYSteam Evolution
www.systeam.se
EricJohansson
Asp.Net User
Re: Webpart starting order5/10/2007 2:27:47 PM

0

Found the problem. I was creating and setting the values of all the controls in CreateChildControls. Proper use is creating them in the CreateChildControls function, so they're available for other webparts to use, but setting their values in renderchildcontrols, when all connections have been established.


Best regards,
Eric Johansson
SYSteam Evolution
www.systeam.se
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Microsoft Sharepoint: Building Office 2007 Solutions in C# 2005 Authors: Scot Hillier, Pages: 513, Published: 2007
Microsoft Office SharePoint Server 2007: The Complete Reference Authors: David Matthew Sterling, David Sterling, Pages: 788, Published: 2007
Pro ASP.NET 2.0 in VB 2005: special edition. Authors: Laurence Moroney, Matthew MacDonald, Pages: 1360, Published: 2006
Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 Authors: Amanda Murphy, Shane Perran, Pages: 552, Published: 2007
Pro Sharepoint 2007 Development Techniques Authors: Margriet Bruggeman, Nikander Bruggeman, Pages: 484, Published: 2007
Beginning SharePoint 2007 Administration: Windows SharePoint Services 3.0 and Microsoft Office SharePoint Server 2007 Authors: Göran Husman, Pages: 578, Published: 2007
Beginning Sharepoint with Excel: From Novice to Professional Authors: Gini Courter, Annette Marquis, Pages: 253, Published: 2006
Microsoft Office Project Server 2007: The Complete Reference Authors: Dave Gochberg, Rob Stewart, Pages: 647, Published: 2008
Essential SharePoint: Microsoft Office Document Collaboration in Action Authors: Jeff Webb, Pages: 310, Published: 2005
Pro SharePoint 2003 Development Techniques: Development Techniques Authors: Nikander Bruggeman, Margriet Bruggeman, Pages: 395, Published: 2006

Web:
Webpart starting order - ng.asp-net-forum ... Webpart starting order, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp.net. web_parts_and_personalization, Date: 5/10/2007 11:34:01 AM, Replies: 1, ...
Webpart starting order - ASP.NET Forums Webpart starting order. Last post 05-10-2007 10:27 AM by EricJohansson. 1 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Alternative display order in Content Query Web Part - Waldek Mastykarz Now let’s modify the XSLT responsible for rendering the items retrieved by the Content Query Web Part. Before we start let’s create a custom ItemStyle ...
Custom Order Management (BDC) Webpart for Dynamics GP 10 ... We need to create a customer Order Porcessing Webpart to replace the one ... If so, where do I start? I have never before work on any these ...
Order Form Web Part - Community Clips The order is saved in a list "Orders" and a custom workflow can start ... SharePoint Designer - Apply a Custom Stylesheet to a Data View Web Part ...
Martin Vollmer`s Blog : Remote WebPart Development for MOSS 2007 In order to load the new package file, you maybe must start Visual ... So you can not yet build the WebPart or other Sharepoint Projects on the Workstation. ...
Use the Table of Contents Web Part to display navigation on a Web ... Note If you select Show content from starting location, the Table of ... Select this option to cause the Web Part to use the same sort order that is used in ...
Stock Quotes Web Part In order to start modifying the “Stock Quotes” web part appearance, choose option “Modify Shared. Web Part” from the main menu and click on the “+” symbol ...
Alternative display order in Content Query Web Part « Tech Talk PT You can find this article here. Posted in MOSS and WSS 3.0 | Tagged Content Query Web Part, order | No Comments. Trackback URI | Comments RSS ...
WebPart Development Simplified NET Framework into SharePoint product line (starting from ... Also in order to deploy a web part, a .CAB file needs to be created, which includes the ...

Videos:
Tell Me Why - The Internet http://www.tmwmedia.com/tell_me_why_26.html See an excerpt from this phenomenal title from the award-winning Tell Me Why series, based on the books ...






problem adding microsoft word com to project. please help.

configuration: debug .net even when configuration is release and debug=false

web reporting suggestions, please?

system.nullreferenceexception: object reference not set to an instance of an object.

losing 1st row in datatable/reader, how?!

xmldataprovider, sqldataprovider

is there an easy way to create tabs depending on the role

converting date to day of week

where is the tab control

aligning fields in asp.net 20

tricky replace function

ddl storing wrong value.

listing contents of a directory

autonumbers problems with inserting!

inheriting the struct

assigning arraylist error

general web application architecture questions

datagrid displaying directory content and sorting it by file modified date c#

seemingly simple html problem

problems with aspx files

login portal and client file sharing

how to use com components in asp.net application

add javascript to wizard's cancel button?

session or stored proc

make a link to download file

serialization

asp.net & ssl hosting?? webhost4life = no

parent-child web application.

open modalpopup by onmouseover attribute.

how to display multiline text in <%# container ... %> ?

   
  Privacy | Contact Us
All Times Are GMT