Postback to a Custom Control URGENT!!

C

Chris

Does anyone have any examples of how to handle postback to a derived class
custom control from the hosting main page or a popup child window from the
main page?
And then storing information in a variable declared in the control?

Any help would be greatly apprectiated!
Thanks in advance.
 
C

ccallen

Quickstart/aspplus/samples/webforms/ctrlauth/composition/cs/composition3.cs
(from the .net sdk) has two events (AddBtn_Click & SubtractBtn_Click) that
changes a value stored in a text box.

The storage method could be modified to use a member variable (or viewstate
(not shown)):

protected string _value;

public string Value {
get { return _value; }
set { _value = value.ToString(); }
}

composition then fires the Change event in the parent page. The parent can
access the controls public properties, Value in this case.

ccallen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top