CodeVerge.Net Beta


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

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 4/3/2008 9:35:14 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 52 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
matthewwebster
Asp.Net User
Add Part -> DataBind -> Error4/3/2008 9:35:14 PM

0/0

Hi,

I'm using the addwebpart event on the webpartmanager to monitor when a part has been added (it contains a web user control).  Once the event is called I then call DataBind on the web user control within the generic web part.  This throws an error ("Cannot use Eval, XPath or Bind on a control that is not on the Page") on the databound Repeater within the web user control.

Does anyone know why?  My contols are as simple as detailed above.

Thanks in advance,

Matt.


This post with no guarantees associated, being a personal submittal with no affiliation intended or implied.
<mc:WittyRemark runat="server" id="wr1" />
vinz
Asp.Net User
Re: Add Part -> DataBind -> Error4/4/2008 1:38:17 AM

0/0

Can you post your codes here so that we can check it out? 


Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post fixed your problem.


matthewwebster
Asp.Net User
Re: Add Part -> DataBind -> Error4/5/2008 12:32:58 AM

0/0

Actually, I've solved it.  It turns out I just needed to pay attention to the page life cycle and I found that I needed to perform things like databinding of the controls on the page after the controls being added by the web part manager were ensured.  ie: I needed to databind after EnsureChildControls had been called, thus ensuring that the control hierarchy was in place.  I now do this in the Page_LoadComplete event, as this comes before the PreRender but after the EnsureChildControls.

As for the web part manager added components, handling the WebPartAdded event ensures that the controls have finished being added to the page and so I can tell them about the currently document data and they will databind they content.

Thanks,

Matt.

Ps: Now all I have to do is figure out why my page appears to be submitting a postback twice for each button click!


This post with no guarantees associated, being a personal submittal with no affiliation intended or implied.
<mc:WittyRemark runat="server" id="wr1" />
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Distributed Data Applications with ASP.NET Authors: Alex Homer, Dave Sussman, Pages: 786, Published: 2003
DNS and BIND Authors: Cricket Liu, Paul Albitz, Pages: 616, Published: 2006
Apache Cookbook Authors: Ken A. L. Coar, Ken Coar, Richard Cooper Bowen, Rich Bowen, Pages: 254, Published: 2003
Maya Character Creation: Modeling and Animation Controls Authors: Chris Maraffi, Pages: 384, Published: 2004
Perl in a Nutshell: A Desktop Quick Reference Authors: Nathan Patwardhan, Ellen Siever, Stephen Spainhour, Pages: 737, Published: 2002
Upgrading and Repairing Networks Authors: Terry William Ogletree, Scott Mueller, Pages: 1152, Published: 2001

Web:
Add Part -> DataBind -> Error - ASP.NET Forums Add Part -> DataBind -> Error. Last post 04-04-2008 8:32 PM by matthewwebster. 2 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Tibco ADB Adapter :BIND ADD ERROR PACKAGE ALREADY EXISTS ... Apr 25, 2008 ... to send unsolicited email, and will not be sold to a 3rd party. ... This gives a weird error. "BIND ADD ERROR PACKAGE ALREADY EXISTS". ...
Support Forums: BIND ADD ERROR PACKAGE ALREADY EXISTS ... ODBC Drivers at DataDirect. Specializing in JDBC drivers, data providers, XQuery and ODBC downloads.
Sharepoint windowsservices listbox databind problem web part. listbox databind problem web part. - Srira. 08-Feb-07 12:30:00 ... ErrorMessage = "Error... Could not add name(s) to Read Write list."; this. ...
Wad of Stuff: One rule to bind them - part I One rule to bind them - part I. One of the major developments in my jumpstart ... Also, if any of the required steps was not done or an error/typo was made ...
Stumbling Through: WPF (Databinding Part III) - Stumbling Through Stumbling Through: WPF (Databinding Part III). Our project now has a listbox bound to the full name of a collection of people, and textboxes that allow the ...
DataBind Error (DayPilot Forums) I recieve an error when I try to DataBind() the control to the ... (Later I will add more spaces and be interested in the resource view. ...
easyNat & failed to bind error - CGarchitect.com Posts: 40. Name: Alan Booth. United Kingdom. Default easyNat & failed to bind error ... Wow thanks, thought only sales parts of companies where so quick to ...
C# Bits: Dynamic Data Futures – Part 1 Adding Advanced Filters ... Add(Control child) +80 System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +106 System . ...
weird combo box bind error - .NET VB weird combo box bind error. Get answers to your questions in our .NET VB forum. ... Add(daRel) Set_Update_Command() Set_Insert_Command() ...

Videos:
WHAT IS THE HOLY ROSARY !! THE CROWN OF ROSES !!! FOR SALVATION ITSELF !!! INFALLIBILITY ITSELF Now we come to the specific question of infallibility, by which the successors of Peter continue to co...
911 AND THE ROAD TO ARMAGEDDON !!! Their claims are very false. First of all, one should try to see what the text means, not read things into it. They are reading into Matthew the erro...
Distributed continuous quality assurance Google London Test Automation Conference (LTAC) Google Tech Talks September 8th, 2006 Presenter: Adam Porter
Lec 25 | MIT 3.091 Introduction to Solid State Chemistry Solutions: Solute, Solvent, Solution, Solubility Rules, Solubility Product View the complete course at: http://ocw.mit.edu/3-091F04 License: Creati...
www.moldytoaster.com ound of a voice, still at some distance, but which was borne upon the wind, reached him. At this sound, as he was already partially exposed to view,...
William Shakespeare's Twelfth Night The Stanford Shakespeare Society, a nationally recognized student run repertory theater troupe, presents the video of their acclaimed production of T...
www.moldytoaster.com eplied Monte Cristo, "but I never eat Muscatel grapes." Mercedes let them fall, and sighed. A magnificent peach was hanging against an adjoining wal...
www.moldytoaster.com . My brother has ways of his own. When he talks, he says that a bishop ought to be so. Just imagine! the door of our house is never fastened. Whoeve...




Search This Site:










help!! - web.config section replacements problem in web deployment projects

"error occurred creating the configuration section handler" for web deployment project and assemblies

obsfucation

why can't i deploy a web site to localhost using the same name as the project name

webdeploymentsetup.msi with iis7

microsoft.webdeployment.targets(311,24)

problem while loading website

the option "merge all output to a single assembly" deletes the values of text properties of the controls

aspnet_merge doesn't work with indigo's .svc files

visual studio 2005 deployment project

merging multiple projects on deployment

deploy a web application on local machine

how can i add web deployment project to my asp.net project with visual studio 2005?

how to create virtual folder in iis for asp.net 2005 web project

nunit and wdp

web dep. packages -- installation setup file

what router ports must be redirected to server at web site for vs2005 to publish

assembly-level attributes: broken?

how to strip source of embedded files from deployed folder

using an existing .wdproj in my asp.net web application

msbuild task for web deployment?

can't get excludefrombuild to work....

webdeploy and vista

problem with copied file duplicate code behind partial class names

vs2005 on vista; wdp not working

could not find schema information for the element

spelling error

running jsmin automatically?

'global_asax' is ambiguous in the namespace 'asp'.

deploying created web pages to sharepoint

  Privacy | Contact Us
All Times Are GMT