473,383 Members | 1,818 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,383 software developers and data experts.

how to iterate over a single dropdownlist in asp.net(vb language)

144 100+
Hello to Everybody,

I have a dropdownlist by name "Subject" which contain C,C++,Java,Php
which is added by the following way

subject.items.add("C")
subject.items.add("C++")
subject.items.add("Java")
subject.items.add("Php")

In the same webform

i have a Textbox in that when user enter C or C++ or Java or Php

i have to check this textbox text with Subject dropdownlist(Normally Compare with every subject dropdownlist items)

and Say this

This Subject C or C++ or Java or Php have been entered in Subject dropdownlist.....

pl help me



I just now send this post i got one reply to use subject.findbytext but it is not worked............

if anybody know any other coding sent me...................



it shows an error

Findbytext is not a member of dropdownlist

if we should import any namespace , just tell me............ or if u know any other coding just tell me..........................

Davidson

Posted Date:- 19 feb 2008
Feb 19 '08 #1
1 1201
kunal pawar
297 100+
u can used loop and checked in every item of subject
like
Dim i as integer
for i=0 to subject.length-1
Response.write(subject.item(i).text)
next
Feb 19 '08 #2

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

Similar topics

1
by: Maras | last post by:
Hello, as we know VB is not case sensivity. I have a following problem, I have to send to another server few parametrs by post or get method, one of them MUST be a "clientID", it's preety...
2
by: John Howard | last post by:
Where can I find a good explination and example of using VB.Net/ASP.net to browse an MS Access database using ADO.Net? Thanks in advance, John
9
by: ASP .NET Newbie | last post by:
How can I run a WebBrowser control using ASP.NET/VB.NET? I know I can use the WebClient to get the page data, but I need to be able to use the WebBrowser (AxWebBrowser)? Thanks, Chad
5
by: Erich Kolb | last post by:
R&B Solutions, a leader in medical receivables management, is currently recruiting for several .Net developers who have in depth experience with ASP.net, VB.net, XML, XSLT, Web Services, and SQL...
4
by: S. Ahmed | last post by:
Hi all: I am new to VB, especially to VB .NET. I need to create an ActiveX DLL that I can then use in another application (LabView). I know in VB 6.0, creating ActiveX DLL was easy. The...
1
by: ourspt | last post by:
Hi, We are working on an ASP.NET (VB.NET) application and we have a problem opening a word document from our application. When we try to open the word document, we do not get any error...
1
by: jco | last post by:
I have been developing a couple of applications in VS .NET 2003 using Visual Basic. However I do not have a permanent licence for VS. So: would it be possible to continue the development of these...
4
by: ARJOBS.CO.IN | last post by:
Hi MNC based at noida is conducting a grand for the following technology domains : o ASP.Net, VB.Net or C# and Oracle o Experience : 3 + years Date: June 9, 2007 Time: ...
1
by: venkat6725 | last post by:
hi, how to use the asp.net ajax in all the web forms migrated from (asp.net,vb.net,2003) to (asp.net,vb.net,2005) needs clear description thanks
4
by: John Devlon | last post by:
Hi, I'm trying to create a login page using the default login controle. I also would like to use a custom Ms Acces database instead of a sql server database. Can anyone please tell me how to...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.