DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2006
    Posts
    2

    .Net 2 C#: DropDownList arguments and me

    Hello peeps,

    Im hoping you can help me with what is most likely a very simple problem.

    I have a dropdownlist. This dropdownlist represents a count for a product and is part of a repeater. Just before the repeater reaches each dropdownlist, i set the quantity from the dataset and afterwards populates the dropdownlist using this value inside a method bound to OnDataBinding on the dropdownlist control itself.

    So far so good, that works like a charm.

    However, when the page life cycle has ended and the user reselects an entry in one of the dropdowns, i would ofcourse like to update this. I have a method bound to OnSelectedIndexChanged and AutoPostBack set to true. My problem is that the id of the product which the dropdownlist represents is not present.

    What i really want to do is pass an argument when OnSelectedIndexChanged fires, but i have not been able to find any ways of doing this?

    Im sure im missing something simple here.

    Thank you in advance,

    Tommy

  2. #2
    Join Date
    Dec 2006
    Posts
    2
    Hmm.. I can see that several people have viewed this thread, and also that there is never threads than this one with replies.

    Is my question unclear or is my problem more complex than i think? (and i still cant find a darn solution for it )

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links