Welcome, Guest. Please login or register.
Did you miss your activation email?
dotNETprogrammers.net/forum :: A community for .NET developers « Javaforums.net .NET programming boards (modify) « ASP.NET «  (Moderator: OutRunner)Topic: asp.net how to auto fill dropdownlist with another dropdownlist?
Pages: [1]   Go Down
  Print  
Author Topic: asp.net how to auto fill dropdownlist with another dropdownlist?  (Read 1209 times)
0 Members and 1 Guest are viewing this topic.
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2593
Referrals: 13

WWW Awards
« on: June 24, 2009, 04:46:27 AM »

Hi,

I was wondering how to auto fill a second dropdownlist when i've selected a value from the first dropdownlist ?
It partially workd when checking for a SelectedIndexChanged event but the 2nd dropdownlist only auto fills when i press a button. I think this is due the postback and as far as i know dropdownlists don't have autopostbacks attribute so i cant reload the page when the index of the first dropdownlist is changed.

Any suggestions to accomplish this?
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2593
Referrals: 13

WWW Awards
« Reply #1 on: June 24, 2009, 05:19:41 AM »

Nevermind, i overlooked the AutoPostback property of a dropdownlist.
"AutoPostback=true" solved my issue.

Cheers.
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Pages: [1]   Go Up
  Print  
dotNETprogrammers.net/forum :: A community for .NET developers « Javaforums.net .NET programming boards (modify) « ASP.NET «  (Moderator: OutRunner)Topic: asp.net how to auto fill dropdownlist with another dropdownlist?
 
Jump to:  

Your Ad Here