473,512 Members | 15,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deleting Drop Down List

16 New Member
Hello, I have a question about drop down list. How I can delete a selected item from drop down list after clicking the delete button ?

Your help will be appreciate
Apr 3 '07 #1
8 1584
dip_developer
648 Recognized Expert Contributor
Hello, I have a question about drop down list. How I can delete a selected item from drop down list after clicking the delete button ?

Your help will be appreciate
myCombo.Items.Remove(myCombo.SelectedItem)
Apr 3 '07 #2
ummaria
16 New Member
myCombo.Items.Remove(myCombo.SelectedItem)

thanks a lot.....
Apr 3 '07 #3
ummaria
16 New Member
myCombo.Items.Remove(myCombo.SelectedItem)

Its deleting the items only from the list not from the database. How can I DELETE the whole row from the database?
Apr 4 '07 #4
Teenzonez
36 New Member
you will be using C# and ADO.NET i hope..
use the sqlcommand object to assign a query to delete the record we need..
then then use the executenonquery...

Hope this will solve your doubts

Regards
TeenzoneZ
Apr 4 '07 #5
swagat
2 New Member
I want to bind and display one field (i,e Common_Desc of table T_MST_ADM_COMMON which is having 4 fields ) in a drop down list .

What my problem is when i'll click on a add button of one panel (main panel) ,another panel (addpanel) in same master page ll come and the datas should be displayed on the drop down list .

and i could not able to understand on which event i should write,& how to bind;
please give me ideas By which i can proceed .

Thanks
Apr 4 '07 #6
ummaria
16 New Member
you will be using C# and ADO.NET i hope..
use the sqlcommand object to assign a query to delete the record we need..
then then use the executenonquery...

Hope this will solve your doubts

Regards
TeenzoneZ
I am using VB.NET/ ASP.NET in Visual Studio.
Apr 4 '07 #7
Teenzonez
36 New Member
I dont use VB.NET
Wait for sometime...someone else will help you soon
For ur second question also I posted solution...
That too wont work...because its also in C# only..

Regards
TeenzoneZ
Apr 4 '07 #8
ummaria
16 New Member
I dont use VB.NET
Wait for sometime...someone else will help you soon
For ur second question also I posted solution...
That too wont work...because its also in C# only..

Regards
TeenzoneZ

Thank any way
Apr 4 '07 #9

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

Similar topics

3
14207
by: Miguel Dias Moura | last post by:
Hello, i have an ASP.NET / VB page where i have a few 4 groups of Drop Down Lists. Each group of Drop Down Lists include 3 Drop Down Lists for date such as: DAY, MONTH, and YEAR. I don't want...
3
6142
by: Don Wash | last post by:
Hi There! I have a Server-side Drop-down box in ASP.NET (VB) page. What do I do to widen the Drop down box's Pull-Down list's width? I'm not talking about the Drop-down box's width but the box...
13
5212
by: Leszek Taratuta | last post by:
Hello, I have several drop-down lists on my ASP.NET page. I need to keep data sources of these lists in Session State. What would be the most effective method to serialize this kind of data...
2
12595
by: Yoshitha | last post by:
hi I have 2 drop down lists in my application.1st list ontains itmes like java,jsp,swings,vb.net etc.2nd list contains percentage i.e it conatains the items like 50,60,70,80,90,100. i will...
1
2490
by: pmelanso | last post by:
Hello, I have a drop down list which is dynatically loaded from a database and I have a second drop down list that is also dynatically loaded depending on what is selected in the first drop down...
8
7561
by: Ed Dror | last post by:
Hi there ASP.NET 2.0 VB & SQL Express Lest take Northwind Categories Products as example I create a table that hold these two together and I create a stored procedure like select ProductID,...
5
18705
by: ashok893 | last post by:
I'm using two drop down list ina form. I have generated the first drop down list from MySQL database. When i select an option from first drop down list, i have to generate second drop down list...
4
9273
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
3
7331
by: penny111 | last post by:
Hi there, For my application, i need to have 3 drop down lists 1. drop down list of folder names 2. drop down list of documents in the folder selected 3. drop down list of instances of the...
0
7153
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
7371
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
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5676
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,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.