Results 1 to 4 of 4

Thread: [resolved] Getting control value in page level from nested controls

  1. #1
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 03
    Location
    Bournemouth (UK)
    Posts
    539

    [resolved] Getting control value in page level from nested controls

    I am using asp.net 2 and i have a page with is made up from 4 different user controls on each user control there are .net controls, when i do a page postback how do i get the value of the .net control within my control ????
    Last edited by carlblanchard; Jan 17th, 2006 at 04:04 AM.
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message


    IM a progermmer
    IM a programour
    IM a arh FCUK it
    I write code

  2. #2
    ASP.NET Moderator mendhak's Avatar
    Join Date
    Feb 02
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    Re: Getting control value in page level from nested controls

    Within the control's codebehind, ensure that the server controls are declared to be public.

    You could be more OO, and create public properties within the controls that access the values of the .net controls within your controls.

  3. #3
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 03
    Location
    Bournemouth (UK)
    Posts
    539

    Re: Getting control value in page level from nested controls

    yeah i found an example of www.asp.net, i just didnt define my controls correctly in the asp.net presentation layer
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message


    IM a progermmer
    IM a programour
    IM a arh FCUK it
    I write code

  4. #4
    ASP.NET Moderator mendhak's Avatar
    Join Date
    Feb 02
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    Re: Getting control value in page level from nested controls

    Great, now add [Resolved] for future searchers. If they're smart.

Posting Permissions

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