468,115 Members | 2,120 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,115 developers. It's quick & easy.

Formview insertitemtemplate won't populate dropdownlist in Insert Mode

I have a formview that will either edit or insert records into a
database. when I call the page with a query string ?x= its goes to edit
mode and loads data from a datasource in the form and load data into
the dropdown (from another datasource) with no problem.

I'm using the same dropdownlist tag for both edit and insert, however
the dropdown only get populated in insert mode...

<asp:DropDownList ID="RouteCodeList" runat="server" SelectedValue='<%#
Bind("routeCode") %>' DataTextField="routeCode" DatasourceID=

</asp:DropDownList><br />

I've tried adding AppendDataBoundItems=true , and have tried replacing
the selectedvalue with ="", in insert mode it simply does not load the

Also, I've tried loading entries using findcontrol, but that gives me
an instance error.

Anybody, starting a formview in insert mode and populating a dropdown
beforehand? How?


Oct 9 '06 #1
0 1504

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Swetha | last post: by
reply views Thread by jobs at webdos | last post: by
3 posts views Thread by J055 | last post: by
1 post views Thread by Trev | last post: by
6 posts views Thread by AG | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.