Want asp dropdownlist selection to make panel visible?

Select onchange="if (this.optionsthis.selectedIndex.value. IndexOf('foo')! = -1) document.

GetElementById('panel').style. Display = 'block.

Place the panel you're looking to hide within an update panel, and use the dropdownlist change as a trigger to the updatepanel. On the update, check the dropdownlist's value and set the visibility. Either that, or if you know the ID of the panel you can manually use javascript and bind the change event to a function that checks the values and shows/hides the panel accordingly.

Lets say you have dictionary like this List words = new List(); words. Add("foo"); then onchange event of drop down list string selectedText = ddlPanel. SelectedText; foreach(var w in words) { if ( w.

Contains(selectedText) { pnl. Visible = true; } }.

Create dropDownlist with two items, "visible" and "not visible" or whatever suits you and make sure to set the autopostback property to true. Then in vb write the following on page load: If ddlMydropdown. Text = "visible" then panelId.

Visible = true else panelId. Visible = false End If If you code in c#, you can convert this vb code to c# over at developerfusion.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions