Results 1 to 4 of 4

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

  1. #1

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    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 05: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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    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

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width