Click here to Skip to main content
15,902,635 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Retrieving the COM class factory for component with CLSID Pin
JC.KaNNaN17-Feb-10 22:12
JC.KaNNaN17-Feb-10 22:12 
GeneralRe: Retrieving the COM class factory for component with CLSID Pin
Abhishek Sur18-Feb-10 21:41
professionalAbhishek Sur18-Feb-10 21:41 
Questionsearch list box Pin
Laxmi R17-Feb-10 2:04
Laxmi R17-Feb-10 2:04 
AnswerRe: search list box Pin
Brij17-Feb-10 2:50
mentorBrij17-Feb-10 2:50 
GeneralRe: search list box Pin
Laxmi R17-Feb-10 3:50
Laxmi R17-Feb-10 3:50 
AnswerRe: search list box Pin
AdilSaud17-Feb-10 3:37
AdilSaud17-Feb-10 3:37 
GeneralRe: search list box Pin
Laxmi R17-Feb-10 3:55
Laxmi R17-Feb-10 3:55 
GeneralRe: search list box Pin
AdilSaud17-Feb-10 20:39
AdilSaud17-Feb-10 20:39 
Hi Laxmi,

On the code hehind, when your page loads add attributes for javascript key events(suppose your text box is TextBox1 and list box is lstTest) code is :

TextBox1.Attributes.Add("onKeyUp","javacsript:searchOptions('lstTest',document.getElementById('TextBox1').value);");
TextBox1.Attributes.Add("onLostFocus","javacsript:searchOptions('lstTest',document.getElementById('TextBox1').value);");

Now on the aspx page following function can be implemented:

function searchOptions(selectboxID, searchText){
var selectbox = document.getElementById(selectboxID);
var i;
searchTextLength = searchText.length;
for(i=0;i<selectbox.options.length-1;i++){
if(selectbox.options[i].text.indexOf(searchText)>=0){
selectbox.options[i].selected = true;
break;
}
}
}


Hope this helps, I test this in IE7.0 with list box filled with database values only.

Let me know if you need any further information on the same.

Thanx,
Adil...Smile | :) )
GeneralRe: search list box Pin
Laxmi R17-Feb-10 23:01
Laxmi R17-Feb-10 23:01 
GeneralRe: search list box Pin
AdilSaud17-Feb-10 23:06
AdilSaud17-Feb-10 23:06 
GeneralRe: search list box Pin
AdilSaud19-Feb-10 1:16
AdilSaud19-Feb-10 1:16 
Questionhow to add dynamically content in iframe javascript Pin
Tridip Bhattacharjee17-Feb-10 2:01
professionalTridip Bhattacharjee17-Feb-10 2:01 
AnswerRe: how to add dynamically content in iframe javascript Pin
Anurag Gandhi17-Feb-10 4:50
professionalAnurag Gandhi17-Feb-10 4:50 
Questioncrossbrowser center div with dynamic text Pin
Tridip Bhattacharjee17-Feb-10 2:01
professionalTridip Bhattacharjee17-Feb-10 2:01 
AnswerRe: crossbrowser center div with dynamic text Pin
Brij17-Feb-10 2:44
mentorBrij17-Feb-10 2:44 
AnswerRe: crossbrowser center div with dynamic text Pin
Anurag Gandhi17-Feb-10 4:53
professionalAnurag Gandhi17-Feb-10 4:53 
Questionmultiple file download in asp.net. Pin
Tridip Bhattacharjee17-Feb-10 2:00
professionalTridip Bhattacharjee17-Feb-10 2:00 
AnswerRe: multiple file download in asp.net. Pin
Anurag Gandhi17-Feb-10 4:56
professionalAnurag Gandhi17-Feb-10 4:56 
Questionconnect to the correct DB Pin
arkiboys17-Feb-10 1:23
arkiboys17-Feb-10 1:23 
AnswerRe: connect to the correct DB Pin
Pranay Rana17-Feb-10 1:30
professionalPranay Rana17-Feb-10 1:30 
GeneralRe: connect to the correct DB Pin
arkiboys17-Feb-10 1:45
arkiboys17-Feb-10 1:45 
GeneralRe: connect to the correct DB Pin
Pranay Rana17-Feb-10 1:54
professionalPranay Rana17-Feb-10 1:54 
AnswerRe: connect to the correct DB Pin
Dinesh Mani17-Feb-10 1:38
Dinesh Mani17-Feb-10 1:38 
GeneralRe: connect to the correct DB Pin
arkiboys17-Feb-10 1:47
arkiboys17-Feb-10 1:47 
GeneralRe: connect to the correct DB Pin
Dinesh Mani17-Feb-10 1:53
Dinesh Mani17-Feb-10 1:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.