473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

combobox cache problem???

hi friends ,
I made a combobox and there are 18 teams when client clicks one of them

players of that team comes but when client clicks another team... first selected teams' players come should I clear my list or cache and how??
thanks your care .....code is here

Expand|Select|Wrap|Line Numbers
  1. private void dl02_SelectedIndexChanged(object sender, System.EventArgs e)
  2.         {
  3.  
  4.         }
  5.  
  6.     private void Dropdownlist1_SelectedIndexChanged(object sender, System.EventArgs e)
  7.  
  8.         {
  9.  
  10.  
  11.         }Datalist1.DataSource = base.Data.GetTableFromCache( "ListSameTeamPlayers",base.Stats.ListSameTeamPlayers(int.Parse(Dropdownlist1.SelectedValue)) );
  12.             Datalist1.DataBind();
  13.  
  14.  
  15.  
  16.         private void Datalist1_SelectedIndexChanged(object sender, System.EventArgs e)
  17.         {
  18.  
  19.         }
  20.  
  21.  
  22.  
  23.     }
  24. }
Jul 30 '08 #1
6 1335
kenobewan
4,871 Expert 4TB
Please restate your prob and provide more info. Thanks.
Jul 30 '08 #2
MrMancunian
569 Expert 512MB
Use DataList1.Clear()
Jul 30 '08 #3
Use DataList1.Clear()

where I vill write this code I am new in .net

ı cant add this code in my code


thanks your care
Jul 30 '08 #4
Frinavale
9,735 Expert Mod 8TB
Do you want to clear a datalist and re-populate it when one of your dropdownlists/ comboboxes have their index changed?

In your SelectedIndexChanged event for each of your dropdownlists/comboboxes clear the datalist...you're going to have to keep track of the "current" dropdownlist/combobox so that you don't clear the list when it's the "current" dropdownlist/combobox.

I'm not clear on what your problem is.
Please restate your problem using more detail.


-Frinny
Jul 30 '08 #5
I create a combobox and I list 18 football team
and client vill click a team to see its players and it works but when client click
b team after a team .....a team players again I vant to take b teams players

my code is like this
Expand|Select|Wrap|Line Numbers
  1. private void Dropdownlist1_SelectedIndexChanged(object sender, System.EventArgs e)
  2.  
  3.         {
  4.  
  5.             Datalist1.DataSource = base.Data.GetTableFromCache( "ListSameTeamPlayers",base.Stats.ListSameTeamPlayers(int.Parse(Dropdownlist1.SelectedValue)) );
  6.             Datalist1.DataBind();  
  7.  
  8.         }
  9.  
  10.  
  11.  
  12.         private void Datalist1_SelectedIndexChanged(object sender, System.EventArgs e)
  13.         {
  14.  
  15.         }
  16.  
  17.  
  18.     }
  19. }
  20.  

how can I solve this problem ..thanks for your helps
Jul 30 '08 #6
Plater
7,872 Expert 4TB
Threads merged. Please do not double post your questions, it is against the Posting Guidelines. Your question was already being worked on, further information should be re-posted to the same thread.
MODERATOR
Jul 30 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Chandra | last post by:
Hello Sir, This is Chandra and Working as Software Engineer. I got a really weird problem with ComboBoxes. I have set the ComboBox DroppedDown Property to true. Now the actual problem is...
7
by: Nicolae Fieraru | last post by:
Hi All, I am trying to change the rowsource of a combobox when I click on it. I played with many events, associated with the form and the combobox, but still haven't figured out what is the way...
8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
1
by: anonymous | last post by:
I've been trying to put a them, please help me out. Here's the major parts of my code: public Form1() { DataSet myDataSet = new DataSet("myDataSet"); DataTable testTable = new...
3
by: TT (Tom Tempelaere) | last post by:
Hay there, I'm writing my own DataGridComboBoxColumn because .NET 1.1 does not have one (I hope .NET 2.0 supplies one). I based it on this article:...
4
by: Keith | last post by:
Hello - this started out as a minor annoyance - and now is starting to bother me more and more - I'm hoping someone can help me. I would like to have a combobox display - NOT initially be blank...
30
by: dbuchanan | last post by:
ComboBox databindng Problem == How the ComboBox is setup and used: My comboBox is populated by a lookup table. The ValueMember is the lookup table's Id and the DisplayMember is the text from a...
4
by: jon f kaminsky | last post by:
Hi- I've seen this problem discussed a jillion times but I cannot seem to implement any advice that makes it work. I am porting a large project from VB6 to .NET. The issue is using the combo box...
4
by: =?Utf-8?B?UmljaA==?= | last post by:
Greetings, I have to load 30,000 unique names into a combox. Filling a dataTable takes only a few milliseconds. But populating the combobox and displaying the list takes several seconds - way...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.