473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

DropDownList

Hi
I looked everywhere to solve my problem but with no success. On page there
is a dropdownlist control which is binded to a database. When I select one
of the list item and press a button I would like to get the SelectedItem
property, but it is always set to Nothing. What should i do? On page load I
use Page.IsPostBack=false to load the dropdownlist only once.
Thanks!

Jure
Nov 17 '05 #1
7 5733
Have you set AutoPostBack =true of Ddl

Regards
Sushila
..NET MVP

"Mira Vizjak" <mi**********@guest.arnes.si> wrote in message news:be**********@planja.arnes.si...
Hi
I looked everywhere to solve my problem but with no success. On page there
is a dropdownlist control which is binded to a database. When I select one
of the list item and press a button I would like to get the SelectedItem
property, but it is always set to Nothing. What should i do? On page load I
use Page.IsPostBack=false to load the dropdownlist only once.
Thanks!

Jure



Nov 17 '05 #2
I don't want the page to reload so I can't use AutoPostBack=true.
Nov 17 '05 #3
I don't want the page to reload so I can't use AutoPostBack=true.
Nov 17 '05 #4
Did you set the 'EnableViewState' to true for the dropdownlist ?

"Mira Vizjak" <mi**********@guest.arnes.si> wrote in message
news:be**********@planja.arnes.si...
Hi
I looked everywhere to solve my problem but with no success. On page there
is a dropdownlist control which is binded to a database. When I select one
of the list item and press a button I would like to get the SelectedItem
property, but it is always set to Nothing. What should i do? On page load I use Page.IsPostBack=false to load the dropdownlist only once.
Thanks!

Jure

Nov 17 '05 #5
Did you set the 'EnableViewState' to true for the dropdownlist ?

"Mira Vizjak" <mi**********@guest.arnes.si> wrote in message
news:be**********@planja.arnes.si...
Hi
I looked everywhere to solve my problem but with no success. On page there
is a dropdownlist control which is binded to a database. When I select one
of the list item and press a button I would like to get the SelectedItem
property, but it is always set to Nothing. What should i do? On page load I use Page.IsPostBack=false to load the dropdownlist only once.
Thanks!

Jure

Nov 17 '05 #6
the item in a check list has a value and item text, are you setting the item
value?

"Mira Vizjak" <mi**********@guest.arnes.si> wrote in message
news:be**********@planja.arnes.si...
Hi
I looked everywhere to solve my problem but with no success. On page there
is a dropdownlist control which is binded to a database. When I select one
of the list item and press a button I would like to get the SelectedItem
property, but it is always set to Nothing. What should i do? On page load I use Page.IsPostBack=false to load the dropdownlist only once.
Thanks!

Jure

Nov 17 '05 #7
the item in a check list has a value and item text, are you setting the item
value?

"Mira Vizjak" <mi**********@guest.arnes.si> wrote in message
news:be**********@planja.arnes.si...
Hi
I looked everywhere to solve my problem but with no success. On page there
is a dropdownlist control which is binded to a database. When I select one
of the list item and press a button I would like to get the SelectedItem
property, but it is always set to Nothing. What should i do? On page load I use Page.IsPostBack=false to load the dropdownlist only once.
Thanks!

Jure

Nov 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Stanley J Mroczek | last post by:
How do you load a dropdownlist when edit is clicked in a datagrid ? <Columns> <asp:BoundColumn DataField="OptionDescription" ItemStyle-Wrap="True" HeaderText="Option...
2
by: Dominic | last post by:
Hi guys, I'm not sure if this question belongs to FAQ, but I couldn't find a concrete answer. I created a Datagrid control using ItemTemplate, but it's NOT a in-place editing datagrid. One of...
10
by: Sacha Korell | last post by:
I'm trying to load a drop-down list with all DropDownList control names from another page. How would I be able to find those DropDownList controls? The FindControl method will only find a...
12
by: Stanley J Mroczek | last post by:
How do you load a dropdownlist when edit is clicked in a datagrid ? <Columns> <asp:BoundColumn DataField="OptionDescription" ItemStyle-Wrap="True" HeaderText="Option...
0
by: asmx126453 | last post by:
Hey mensen I am having some big troubles here i tryd solving it myself with internet for 2 days but i kind fix it. Its about this i have a DotNet project that alrydi is online and working for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.