CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2002
    Location
    Mumbai
    Posts
    98

    Smile How to set the values to server side controls on pageload?

    Hi,

    I am having three combo boxes for the day, month and year. All three of them are server side controls.

    These combo boxes are already been filled with the values, now i want to set the values depending upon the date from serverside.

    I am trying to wirte the code on page_load event but its giving me error can't access webcontrol.

    Now how to set the values in the controls? Will javascirpt be helpful in this?

    I want the values to be set by page_load and not after any button click.

    Any help will be appreciated.

    thank you
    Amit

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: How to set the values to server side controls on pageload?

    Can you post the code that you are using? It should work properly.

  3. #3
    Join Date
    Jun 2005
    Posts
    11

    Re: How to set the values to server side controls on pageload?

    hey,post your code and it should be work out soon,that is simple


    <code>
    </code>

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

Featured