Postback to a Custom Control URGENT!!

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Postback to a Custom Control URGENT!!

    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.


    Chris Guest

  2. Similar Questions and Discussions

    1. Problem with Postback and custom datagrid control
      Can any body help... I have a custom control drived out of datagrid control, which I am using in a user control. Based on certain events this...
    2. custom control onblur postback
      I have a custom control with a textbox and dropdown list. The dropdown list is hidden and acts as a data source for the textbox. When the user...
    3. Implementing postback functionality in custom control
      Here is my situation. I first made a custom composite control (consisting of a textbox and button) that does a whois lookup based on the domain name...
    4. Custom Control Postback Problem
      Can you post the code you used to set the name and id? Thanks! "Raymond" wrote:
    5. Custom checkbox control and postback
      Hello, please help me I create a set of custom controls with IPostBackDataHandler, and postback processing. All worked correctly, only custom...
  3. #2

    Default Re: Postback to a Custom Control URGENT!!

    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

    "Chris" <calhoun_chris@hotmail.com> wrote in message
    news:uAD4dNeMEHA.3988@TK2MSFTNGP09.phx.gbl...
    > 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.
    >
    >

    ccallen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139