Click here to Skip to main content
15,922,696 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Crystal Reports Error - BOBJ is undefined Pin
livez12-Mar-08 2:23
livez12-Mar-08 2:23 
GeneralRe: Crystal Reports Error - BOBJ is undefined Pin
Amit Pankajkumar Shah17-Jun-11 19:12
Amit Pankajkumar Shah17-Jun-11 19:12 
GeneralRe: Crystal Reports Error - BOBJ is undefined Pin
mostafa_nagar20-Mar-10 9:13
mostafa_nagar20-Mar-10 9:13 
GeneralRe: Crystal Reports Error - BOBJ is undefined Pin
harishkumardaga21-Nov-11 19:09
harishkumardaga21-Nov-11 19:09 
GeneralRe: Crystal Reports Error - BOBJ is undefined Pin
Member 466304319-Apr-12 20:55
Member 466304319-Apr-12 20:55 
Questionintegrating ebay search Pin
Syed Gauhar Abbas9-Mar-08 23:48
Syed Gauhar Abbas9-Mar-08 23:48 
GeneralRe: integrating ebay search Pin
Scott Dorman10-Mar-08 7:12
professionalScott Dorman10-Mar-08 7:12 
QuestionHow can I set TextBox value from asp.net Listbox, because I popuplate asp.net Listbox through java script.. Pin
Vishnu Narayan Mishra9-Mar-08 23:21
Vishnu Narayan Mishra9-Mar-08 23:21 
How can I set TextBox value from asp.net Listbox, because I popuplate asp.net Listbox through java script..
I tried it by calling the java script function onChange(and onSelectedIndexChange) event of list box, but event is not calling java script function

from here..

following is my code--


<asp:listbox id="lstShowHistory" selectionmode="Single" runat="server" width="200px" height="300px">

onChange="setTextBoxValue(this.value);">



function setTextBoxValue(e)
{
//var strListBoxName = document.getElementById('lstShowHistory');
document.getElementById('txtUrlLink').value = e ; //strListBoxName.options[strListBoxName.selectedIndex].text ;

//;options[document.getElementById('lstShowHistory').selectedIndex].text;
}

the list box is popuplate on mouse over event on the text box...

txtUrlLink.Attributes.Add("onfocus", "ShowList();");

function ShowList()
{
getCookie();
document.getElementById('helptypediv').style.visibility='visible';return false;
}


function getCookie()
{
if(document.cookie)
{
var strListBox = document.getElementById('lstShowHistory');
var ls1= document.cookie.split("=");
if (ls1.length >1)
{
var ls2 = ls1[1].split("|");
var count = ls2.length;
var strLink = "";
var optionItem;

//Clear the previous options from the list
for(var lstCount = strListBox.options.length-1; lstCount>-1; lstCount--)
{
strListBox.options[lstCount] = null;
}
if(count >= 2 )
{
for(var x = count-1; x>=0; x--)
{
var ls3=ls2[x];//[x].split("|");
strLink+= ls3;
optionItem = new Option(ls3, ls3, false, false);
strListBox.options[strListBox.length] = optionItem;
}
}
}
}
}

Vishnu Narayan Mishra
Software Engineer

AnswerRe: How can I set TextBox value from asp.net Listbox, because I popuplate asp.net Listbox through java script.. Pin
Christian Graus9-Mar-08 23:38
protectorChristian Graus9-Mar-08 23:38 
AnswerRe: How can I set TextBox value from asp.net Listbox, because I popuplate asp.net Listbox through java script.. Pin
Vishnu Narayan Mishra10-Mar-08 1:09
Vishnu Narayan Mishra10-Mar-08 1:09 
GeneralUsing tor to connect with different ip each time Pin
metallica_rock109-Mar-08 21:09
metallica_rock109-Mar-08 21:09 
GeneralRe: Using tor to connect with different ip each time Pin
Christian Graus9-Mar-08 23:43
protectorChristian Graus9-Mar-08 23:43 
QuestionConditional HTML for IE and WAP Pin
Som Gollakota9-Mar-08 14:15
Som Gollakota9-Mar-08 14:15 
Generallocalization - Browser's language and javascript Pin
militiaware8-Mar-08 21:50
militiaware8-Mar-08 21:50 
GeneralRe: localization - Browser's language and javascript Pin
Johnny ²8-Mar-08 22:12
Johnny ²8-Mar-08 22:12 
GeneralRe: localization - Browser's language and javascript Pin
militiaware9-Mar-08 3:14
militiaware9-Mar-08 3:14 
GeneralRe: localization - Browser's language and javascript Pin
Johnny ²9-Mar-08 10:13
Johnny ²9-Mar-08 10:13 
QuestionBrowser Simulator / Emulator Pin
Yusuf7-Mar-08 4:49
Yusuf7-Mar-08 4:49 
GeneralRe: Browser Simulator / Emulator Pin
Christian Graus7-Mar-08 10:16
protectorChristian Graus7-Mar-08 10:16 
GeneralRe: Browser Simulator / Emulator Pin
led mike7-Mar-08 10:38
led mike7-Mar-08 10:38 
GeneralRe: Browser Simulator / Emulator Pin
Mark Churchill9-Mar-08 2:10
Mark Churchill9-Mar-08 2:10 
GeneralConfig IIS7 Pin
AnhTin7-Mar-08 0:19
AnhTin7-Mar-08 0:19 
GeneralRe: Config IIS7 Pin
Paul Conrad7-Mar-08 14:25
professionalPaul Conrad7-Mar-08 14:25 
Generalsms gateway Pin
meghamaharshi6-Mar-08 22:30
meghamaharshi6-Mar-08 22:30 
GeneralRe: sms gateway Pin
Johnny ²6-Mar-08 23:43
Johnny ²6-Mar-08 23:43 

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.