CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 10/6/2004 7:36:34 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 14 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
exptrade2000
Asp.Net User
user controls containing other user controls10/6/2004 7:36:34 PM

0/0

I have a ContactInfo custom class that exposes AddressInfo custom class as property. I created two User Controls, you guess, Contact.ascx and Address.ascx. Address.ascx exposes property Address as AddressInfo. I am running into following problem. In Contact.ascx in page_load sub I am trying to set the values of the Contact class like this :


_contact.PrimaryAddress = ctlAddress.PrimaryAddress


but since value of the PrimaryAddress property in Address.ascx is set also in Page_Load, above code will not work since there is no instance of this object yet. Is my only option to make this work to raise an event from child control to notify Contact.ascx that that Address has changed.

You died at the very end of your life
stevemc
Asp.Net User
Re: user controls containing other user controls10/6/2004 10:39:27 PM

0/0

I would use databinding.

<cc1:Contact id=foo runat=server PrimaryAddress=<%#bar.PrimaryAddress%> />
<cc2:Address id=bar runat=server />

Then after everything has loaded maybe in prerender just call databind on your control.
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET Cookbook Authors: Michael A. Kittel, Michael A. Kittel Geoffrey T. LeBlond, Geoffrey T. LeBlond, Pages: 824, Published: 2004
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Windows Forms Programming in C# Authors: Chris Sells, Pages: 681, Published: 2004
Developing Microsoft ASP.NET Server Controls and Components Authors: Nikhil Kothari, Vandana Datye, Pages: 689, Published: 2002
Professional Visual Studio 2005 Authors: Andrew Parsons, Nick Randolph, Pages: 869, Published: 2006
Essential ASP. NET with Examples in C#: With Examples in C# Authors: Fritz Onion, Pages: 393, Published: 2003
Programming ASP.NET: Building Web Applications and Services Using C and VB.NET. Authors: Jesse Liberty, Dan Hurwitz, Pages: 988, Published: 2003
The Human-computer Interaction Handbook: Fundamentals, Evolving Technologies, and Emerging Applications Authors: Julie A. Jacko, Andrew Sears, Pages: 1277, Published: 2003
ASP.NET in a Nutshell: In a Nutshell Authors: G. Andrew Duthie, Matthew MacDonald, Pages: 979, Published: 2003

Web:
An Extensive Examination of User Controls User controls, on the other hand, are implemented as classes, ..... At this point, the user control completely handles the events of its containing Web ...
The Microsoft Dynamics AX Enterprise Portal Blog : Sharing Code ... Create a User control and add all the common reusable code into this dummy user control and then include it into your other user controls where you want to ...
Tip/Trick: Creating and Using Silverlight and WPF User Controls ... Alternatively you can create re-usable User Controls - which make it easy to ..... Does your silverlight team have plan to expose directx ,opengl or other ...
ASP.NET.4GuysFromRolla.com: Trigger Page Methods from a User Control Sometimes there will be a business need to pass data between the User Control and its containing ASP.NET Web page. For example, you might have an address ...
Microsoft ASP.NET QuickStarts Tutorial Notice that there are two Address user controls on the containing Web Forms page ... User controls are included into another Web Forms page using a Register ...
User Controls and Other "Useful" Things The user control is a control like any other. In this snippet of code, ... had to handle all update code in the UpdateEvent handler of the containing list. ...
Windows Forms: Developing Compelling User Controls that Target ... Your control will essentially be a miniature form containing other controls ... You must first create a project with a Class Library or User Control type to ...
CodeProject: Mastering Page-UserControl Communication. Free source ... How to access values from one user control in another user control? ..... Communicating information from a user control to its containing page is not ...
Event Bubbling From Web User Controls in ASP.NET (C#) Other user controls will contain buttons to post back. Although it is possible to subscribe to the button click event from the containing page, ...
ASP 101 - User Controls Controls that you build are called user controls and they are the topic of this lesson ... is registered and can be used just like any other server control. ...

Videos:
Coconut: COde CONstructing User Tool Google Tech Talks March, 7 2008 ABSTRACT Coconut is a developing system for high-assurance, high-performance software. It was used to ...
Kilim: Fast, lightweight, cheap message passing in Java. Google Tech Talks June, 11 2008 ABSTRACT Kilim: Fast, lightweight, cheap message passing in Java. A million actors, 3x faster than Erlang. The ...
The Home Viewing Chair During the 1950's, television became the dominant mass media as people sought to bring television into their homes. In 1956, Buddy Gray, the ...
** Old version ** The Dangers of Aspartame (Sweeteners ... For the longer and improved version of this video, please go to: http://video.google.nl/videoplay?docid=-6597433324532732904 Aspartame (E951 ...
FragMetrics Promotional Video http://www.motionmetrics.ca/fragmetrics.html FragMetrics is a real-time fragmentation analysis system for mining shovels and loaders ...
YS Flight Simulator 2008 trailer video/trailer i made for YSFlight simulator. background sound and music is from ace combat 6. comment and rate please. hope you like it. EDIT ...
GCCS97 #146 Proceedings of the GCC Developers Summit 2007 From http://ols.108.redhat.com/2007/GCC-Reprints/GCC2007-Proceedings.pdf . leaving many node attributes out. Figure 2: Syntax of ...
Assistive Vision Technology for the Blind: Recognizing ... Google Tech Talks September 5, 2006 Serge Belongie
osbourne executive The Executive is the successor of the Osborne 1, from which it keeps the good points and correct its flaws. More memory, bigger screen, more ...
Latinsizer/live at Sunrise(Trisine+303 jam)nortec collective playing live at sunrise, Rosarito beach, Mexico. Pepe Mogt playing the song TRISINE followed by a jam with 303 bass lines and linndrum beats ...




Search This Site:










error:page location: /petrescuetees/productpage.aspx?productid=http%3a%2f%2fwww.obrasmecanicasch.com%2fomch%2fimg%2fitofu%2fviroja%2f

getting the windows user name without using impersonation

treeview help for vb visual studio 2003

shoppingcartdb

createuserwizard

inegrating reports starter kit with portal

help!!! on moving files to isp server!

html and rss

looking for advice, problems w/ user control and master page code behinds

design view messing up code

unhandled error loading module. (3.1)

problem with makedir

repairing visual studio: how does it affect...

problem logging in as "admin"

will not see administrators when using windows authentication

connecting membership to sql table

changing sql data language

i saw a 'personal organizer' module.. but where?

login won't work under certain circumstances

dnn labeledit problems saving non roman characters

smr initials - who is that?

masterpages and web user controls

postback event and javascript:return confirm

scroll to node in treeview asp.net 2.0

how can i do a postback w/querystring from a dropdownlist

integrated authentication

install skin -> found

show/hide webparts i catalogzone?

how to use createtamperproofurl

design issue: session vs cache vs profile

 
All Times Are GMT