without auto postback how can i display the dopdown?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vasavivenu
    New Member
    • Feb 2011
    • 37

    without auto postback how can i display the dopdown?

    Hi,

    I have drop down autopostback = "true", therefore each time user clicks on the ... page, it takes time to load up the page, So i want to change autopostback ="false", how i write the code.

    Thanks in Advance,

    Vasavivenu.
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    Just set it to false. What's the problem?

    If you still want the postback to happen without triggering a full page refresh, use the Ajax tools, like an UpdatePanel.

    Comment

    • vasavivenu
      New Member
      • Feb 2011
      • 37

      #3
      Thank you, could you please give the Ajax ready code for that problem.

      thanks in advance,
      vasavivenu

      Comment

      • Curtis Rutland
        Recognized Expert Specialist
        • Apr 2008
        • 3264

        #4
        Nope. We don't do that here. Try it yourself, then post what problems you're having.

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          I really don't understand the problem...

          When a DropDownList is rendered it becomes an HTML <select> element. If you set the DropDownList's AutoPostback property to False, the DropDownList will still appear in the browser...and when the user clicks on the DropDownList in the browser it will still show the options in the list.

          If you need to do something that requires server side processing when the user selects an item in the list, then you need to send the page to the server for processing.

          If you want this to happen without submitting the entire page to the server, then place the content that is involved in processing the request within an UpdatePanel. (This means you have to place the DropDownList and any other controls that are used to display the information...o r get the information for the request...in the UpdatePanel)

          It's pretty simple.

          -Frinny

          Comment

          • vasavivenu
            New Member
            • Feb 2011
            • 37

            #6
            Thank you very much for guidance.

            Regards..
            Vasavivenu

            Comment

            Working...