🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.aspdotnet.components.using
3 messages
3 total messages Started by Orion Tue, 15 Nov 2005 23:12
DbWebDropDownList
#225
Author: Orion
Date: Tue, 15 Nov 2005 23:12
13 lines
1397 bytes
Hello All

I have tried to use  Dbwebdropdownlist  with SelectedIndexChanged  event. I
want that if user selects a data a hidden panel should be visible Then I
have write that code under selectedIndexchanged event
When Autopostback option is true  if I select a data DbWebdropdownlist
returns the first data automaticly. If autopostback is false it takes the
changes and selected data is in the box   But both option  selectedIndex
changed event  doesnt fire.

Please help

Regards
Re: DbWebDropDownList
#226
Author: John Moshakis
Date: Wed, 16 Nov 2005 15:08
29 lines
1630 bytes
Hello Orion,

> Hello All
> 
> I have tried to use  Dbwebdropdownlist  with SelectedIndexChanged
> event. I
> want that if user selects a data a hidden panel should be visible Then
> I
> have write that code under selectedIndexchanged event
> When Autopostback option is true  if I select a data DbWebdropdownlist
> returns the first data automaticly. 

Not sure why the event isn't firing but you can achieve the same with some 
javascript and you haven't got to go back to the server.

ie

    <script>
	function SomeFunction()
	{
		document.getElementById("idofhiddenpanel").style.visibility="visible";
	}
 </script>

      <borland:DBWebDropDownList id="DBWebDropDownList1"
        onchange="SomeFunction()"></borland:DBWebDropDownList>

Cheers,
John
Re: DbWebDropDownList
#227
Author: Orion
Date: Wed, 16 Nov 2005 22:46
36 lines
1936 bytes
Sorry unfortunatly code didnt helped
doesnt do anything
regards
"John Moshakis" <john@moshakis.com> wrote in message
news:d4738630100cd8c7b8b4dfb628c2@newsgroups.borland.com...
> Hello Orion,
>
> > Hello All
> >
> > I have tried to use  Dbwebdropdownlist  with SelectedIndexChanged
> > event. I
> > want that if user selects a data a hidden panel should be visible Then
> > I
> > have write that code under selectedIndexchanged event
> > When Autopostback option is true  if I select a data DbWebdropdownlist
> > returns the first data automaticly.
>
> Not sure why the event isn't firing but you can achieve the same with some
> javascript and you haven't got to go back to the server.
>
> ie
>
>     <script>
> function SomeFunction()
> {
> document.getElementById("idofhiddenpanel").style.visibility="visible";
> }
>  </script>
>
>       <borland:DBWebDropDownList id="DBWebDropDownList1"
>         onchange="SomeFunction()"></borland:DBWebDropDownList>
>
> Cheers,
> John
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads