Click here to Skip to main content
16,006,594 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Christian Graus14-Dec-08 11:08
protectorChristian Graus14-Dec-08 11:08 
AnswerRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Nishant Singh14-Dec-08 18:24
Nishant Singh14-Dec-08 18:24 
GeneralRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Ginozzzz14-Dec-08 23:26
Ginozzzz14-Dec-08 23:26 
GeneralRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Nishant Singh15-Dec-08 1:15
Nishant Singh15-Dec-08 1:15 
GeneralRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Ginozzzz15-Dec-08 1:57
Ginozzzz15-Dec-08 1:57 
GeneralRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Ginozzzz15-Dec-08 9:40
Ginozzzz15-Dec-08 9:40 
QuestionDetailsView and dropdownlist Pin
Sandraa14-Dec-08 8:01
Sandraa14-Dec-08 8:01 
AnswerRe: DetailsView and dropdownlist Pin
Marcelo Emmerich14-Dec-08 9:30
Marcelo Emmerich14-Dec-08 9:30 
Hi Sandraa,

I have done this many times. I don't know exactly why it does not work for you (did not try it out), however, I want to show you a snippet of my working code. Besides being C# the main difference is that I use declarative syntax only:

First the dropdown declaration in the .aspx file:

<br />
<asp:dropdownlist ontextchanged="OnTextChanged" xmlns:asp="#unknown"><br />
                                     SelectedValue='<%# Bind("fake_flag1")%>' <br />
                                     ID="ddl_test1" <br />
                                     DataSourceID="TestDS" <br />
                                     DataTextField="someDescription" <br />
                                     DataValueField="someID" <br />
                                     runat="server"><br />
</asp:dropdownlist><br />


Next the declaration of the datasource for the above dropdown, which is different of the detailsview the dropdown is in:

<br />
 <asp:sqldatasource id="TestDS" runat="server" connectionstring="<%$ ConnectionStrings:ConnectionString %>" xmlns:asp="#unknown"><br />
        SelectCommand="SELECT * FROM TEST"><br />
    </asp:sqldatasource><br />


Hope this helps. Maybe the problem in your code is the point in time when you try to set the datasource?

Cheers,

Marcelo

--
Marcelo Emmerich
Software Development - Computer Graphics - Mobile Computing
http://bytethings.blogspot.com

GeneralRe: DetailsView and dropdownlist Pin
Sandraa14-Dec-08 9:43
Sandraa14-Dec-08 9:43 
GeneralRe: DetailsView and dropdownlist Pin
Christian Graus14-Dec-08 10:14
protectorChristian Graus14-Dec-08 10:14 
AnswerRe: DetailsView and dropdownlist Pin
Nishant Singh14-Dec-08 17:09
Nishant Singh14-Dec-08 17:09 
GeneralRe: DetailsView and dropdownlist Pin
Sandraa15-Dec-08 7:51
Sandraa15-Dec-08 7:51 
GeneralRe: DetailsView and dropdownlist Pin
Sandraa16-Dec-08 9:04
Sandraa16-Dec-08 9:04 
QuestionHow to load any configuration file other than web.config ? Pin
Bijay Deo14-Dec-08 7:30
Bijay Deo14-Dec-08 7:30 
AnswerRe: How to load any configuration file other than web.config ? Pin
Christian Graus14-Dec-08 8:20
protectorChristian Graus14-Dec-08 8:20 
QuestionA free hosting of ASP with Mysql Pin
abbd14-Dec-08 6:16
abbd14-Dec-08 6:16 
AnswerRe: A free hosting of ASP with Mysql Pin
Christian Graus14-Dec-08 8:20
protectorChristian Graus14-Dec-08 8:20 
GeneralRe: A free hosting of ASP with Mysql Pin
abbd14-Dec-08 9:01
abbd14-Dec-08 9:01 
GeneralRe: A free hosting of ASP with Mysql Pin
Paul Conrad14-Dec-08 9:08
professionalPaul Conrad14-Dec-08 9:08 
GeneralRe: A free hosting of ASP with Mysql Pin
Christian Graus14-Dec-08 9:35
protectorChristian Graus14-Dec-08 9:35 
GeneralRe: A free hosting of ASP with Mysql Pin
abbd14-Dec-08 10:00
abbd14-Dec-08 10:00 
GeneralRe: A free hosting of ASP with Mysql Pin
Christian Graus14-Dec-08 10:15
protectorChristian Graus14-Dec-08 10:15 
GeneralRe: A free hosting of ASP with Mysql Pin
Paul Conrad14-Dec-08 10:59
professionalPaul Conrad14-Dec-08 10:59 
Question'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine" Pin
coolsatty14-Dec-08 6:10
coolsatty14-Dec-08 6:10 
AnswerRe: 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine" Pin
Christian Graus14-Dec-08 8:22
protectorChristian Graus14-Dec-08 8:22 

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.