ASP.NET - How to select multiple fields from dropdownlist
Asked By srujan
06-Sep-10 04:59 AM
Hi Friends,
Please send me the code to select multiple fields from dropdownlist.........
Thanks & REgards
Sujju
Anand Malli replied to srujan
Hi Srujan,
i do no think you can directly have DROPDOWNLIST LIKE THIS...either you can take listbox which provides multiple selection of item by holding ctrl key and clicking item you can select multiple items...but with inbuilt dropdown you can not have this
or you can search for some third party control which provide this type of functionality
let me know if you need more help
thxs
Reena Jain replied to srujan
hi, srujan
you can select multiple value for drop down at one time, for this you have to use listbox and to treat it as combo box just set row=1 for this.
Hope this will help
srujan replied to srujan
srujan replied to Anand Malli
k tell me sir.........
thanx & REgards
Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B B) What is a Thread? (B) Did VB6 support multi-threading? (B)Can we have multiple threads in one App domain? (B) Which namespace has threading? (A) What does Address Of A) What is scavenging? (B) What are different types of caching using cache object of ASP.NET? (B) How can you cache different version of same page using ASP.NET cache object? (A) How will implement Page Fragment Caching? (B) Can you compare ASP.NET sessions with classic ASP? (B) Which are the various modes of storing ASP.NET
ASP.NET DataList and DataRepeater Controls This is the third article in a three part series of articles pertaining to the understanding and application of ASP.NET 2.0 data controls. This article will address common functionality that may be required from ASP.NET DataList and DataRepeater data controls ASP.NET 2.0 Data Controls Author: Douglas Minnaar The intent of this series is to provide
ASP.NET 2.0 Data Control Series The intent of this series is to provide more information concerning the functionality and limitations of the available ASP.NET 2.0 data controls. This will mostly be demonstrated through the use of code samples experience. Therefore, this series will address the basics first before moving onto more advanced tools. ASP.NET 2.0 Data Controls Author: Douglas Minnaar The intent of this series is to provide more information concerning the functionality and limitations of the available ASP.NET 2.0 data controls. This will mostly be demonstrated through the use of code samples
created a user control i.e, login page using built-in login control using c# & asp.net. The default database is sql server. i want to use Oracle. How to connect to System.Data.OracleClient.OracleConnection(conString) '' declare the command that will be used to execute the select statement Dim com As New OracleCommand( "SELECT UserName FROM Users WHERE UserName = @UserName AND Password = @Password" , con) ' set the username and password OracleDbType.NVarChar).Value = userName com.Parameters.Add( "@Password" , Data.OracleDbType.NVarChar).Value = password '' execute the select command Try con.Open() '' execute the select statment Dim result As String = com.ExecuteScalar '' check the result If String .IsNullOrEmpty(result) Then Boolean SiteSpecificAuthenticationMethod( string myUsername, string myPassword) { mConn(); bool boolReturnValue = false ; codetest.Text = myUsername; string SqlQuery = "Select password from legal.users where ecode = '" + codetest.Text + "'" ; / / Main Query try { OracleCommand cmd = new OracleCommand from here . Note that it is built with the final release of VS 2005 and ASP.NET 2.0 – so it won’t work with Beta2 (although it will probably work
be runat = server, you will now be able to use FindControl. Don't forget that multiple rows will have different ID's for the Label, So you probably want to use t server side anymore. Hi, try the following article and it solves your answer. . . The ASP.NET Repeater is a basic container control that allows you to create custom lists from any data available to the page. It's a handy control, especially since most ASP NET pages that display data need to repeat the same kinds of data over and over of repeater tool would you need? Let's consider the most obvious solution first—the ASP.NET Repeater control. The Repeater control does exactly what its name suggests—it repeats the specified of data by default. You determine the final layout of the generated markup by creating ASP.NET templates and explicitly adding markup that separates one row from the next. The canonical