AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 Ajax AutoCompleteExtender in 3.5
Posted by shrikant on  6/3/2009 9:02:06 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend
I used asp.net 3.5 ,so form ajax toolkit i used AutoCompleteExtender . I wants to set the id values in drop down list from the ajax control.Like in asp.net dropdown "value member" and "display member" . I suceeds to set the value as Display member but can not set the id value as value member.I wants the employee name with its employee Id in Ajax list box. iF it will be possible then how can i access this ID value from the form .

Thanksssssssssssssssssss



Post Your Reply Post New Question

 Viewer's Reply
Use DataTextField and DataValueField
Answered By Moderator1 on 6/3/2009 10:25:20 AM
Hi,

For DisplayMember, you can use DataTextField and for ValueMember you can use DataValueField.

For accessing the value of the Listbox, from code-behind, use the below code

string lstboxvalue = ListBox1.SelectedValue;

Thanks.
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Web Application Security — How to Minimize Prevalent Risk of Attacks
Oracle Magazine
Backup and Recovery Best Practices for Microsoft SQL Server 2005