Click here to Skip to main content
15,921,169 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: URL Rewriting Pin
eyeseetee16-Mar-08 22:42
eyeseetee16-Mar-08 22:42 
GeneralI need Inline code for Assiging time to text box Pin
Satish - Developer16-Mar-08 20:13
Satish - Developer16-Mar-08 20:13 
GeneralRe: I need Inline code for Assiging time to text box Pin
Christian Graus16-Mar-08 20:20
protectorChristian Graus16-Mar-08 20:20 
GeneralRe: I need Inline code for Assiging time to text box Pin
N a v a n e e t h16-Mar-08 20:20
N a v a n e e t h16-Mar-08 20:20 
GeneralSearching from Active Directory in Web based application Pin
Abhijit Jana16-Mar-08 19:32
professionalAbhijit Jana16-Mar-08 19:32 
QuestionDetailsView having Foreign key columns? Pin
kbalias16-Mar-08 19:23
kbalias16-Mar-08 19:23 
AnswerRe: DetailsView having Foreign key columns? [modified] Pin
Muhammad Gouda16-Mar-08 22:47
Muhammad Gouda16-Mar-08 22:47 
GeneralRe: DetailsView having Foreign key columns? Pin
kbalias17-Mar-08 1:50
kbalias17-Mar-08 1:50 
Thanks.

I have managed to add a DropDownList to the DetailsView. When I want to Edit the DetailsView, the DropDownList populates correctly with the list of Types.

However when I try to Update, the newly selected value in the DropDownList is not used to update the database. In other words the value of the Foreign key column is not being updated in the database.

I use the following code:
<asp:TemplateField HeaderText="AssignmentType"><br />
    <ItemTemplate><br />
         <asp:Label ID="lblType" runat="server" Text='<%# Eval("AssignmentType")%>'></asp:Label><br />
   </ItemTemplate><br />
    <EditItemTemplate><br />
        <asp:DropDownList ID="DropDownList_Type" runat="server" DataSourceID="SqlDataSource_Types" <br />
              DataTextField="AssignmentType" DataValueField="TypeIndex" AutoPostBack="true" /> <br />
   </EditItemTemplate><br />
</asp:TemplateField>


The SqlDataSource is as follows:
<asp:SqlDataSource ID="SqlDataSource_Types" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"<br />
    SelectCommand="own_AssignmentType_Select" SelectCommandType="StoredProcedure"><br />
</asp:SqlDataSource>


I am obviously missing something, but I do not know what or where.

Thanks.

Kobus
GeneralRe: DetailsView having Foreign key columns? Pin
Muhammad Gouda17-Mar-08 2:45
Muhammad Gouda17-Mar-08 2:45 
GeneralASP.Net 1.1 : How to get the filename of an ascx Pin
Crow-knee16-Mar-08 18:22
Crow-knee16-Mar-08 18:22 
GeneralRe: ASP.Net 1.1 : How to get the filename of an ascx Pin
Christian Graus16-Mar-08 18:45
protectorChristian Graus16-Mar-08 18:45 
GeneralRe: ASP.Net 1.1 : How to get the filename of an ascx Pin
RCoate18-Mar-08 13:27
RCoate18-Mar-08 13:27 
Generalwierd asp.net validator problem Pin
keroed_edmond16-Mar-08 15:49
keroed_edmond16-Mar-08 15:49 
GeneralEmailing the actual gridview Pin
hounetdev16-Mar-08 6:33
hounetdev16-Mar-08 6:33 
GeneralRe: Emailing the actual gridview Pin
Not Active16-Mar-08 8:16
mentorNot Active16-Mar-08 8:16 
GeneralRe: Emailing the actual gridview Pin
hounetdev16-Mar-08 14:26
hounetdev16-Mar-08 14:26 
GeneralRe: Emailing the actual gridview Pin
Not Active16-Mar-08 16:27
mentorNot Active16-Mar-08 16:27 
Questionhow to detect messages sending from one mobile to other. Pin
yogesh_softworld12316-Mar-08 5:26
yogesh_softworld12316-Mar-08 5:26 
AnswerRe: how to detect messages sending from one mobile to other. Pin
pmarfleet16-Mar-08 5:43
pmarfleet16-Mar-08 5:43 
GeneralRe: how to detect messages sending from one mobile to other. Pin
Blue_Boy16-Mar-08 7:25
Blue_Boy16-Mar-08 7:25 
GeneralRe: how to detect messages sending from one mobile to other. Pin
pmarfleet16-Mar-08 8:00
pmarfleet16-Mar-08 8:00 
GeneralRe: how to detect messages sending from one mobile to other. Pin
Paul Conrad16-Mar-08 8:09
professionalPaul Conrad16-Mar-08 8:09 
GeneralRe: how to detect messages sending from one mobile to other. Pin
pmarfleet16-Mar-08 8:23
pmarfleet16-Mar-08 8:23 
AnswerRe: how to detect messages sending from one mobile to other. Pin
Not Active16-Mar-08 8:11
mentorNot Active16-Mar-08 8:11 
AnswerRe: how to detect messages sending from one mobile to other. Pin
Christian Graus16-Mar-08 13:58
protectorChristian Graus16-Mar-08 13:58 

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.