Click here to Skip to main content
14,485,336 members
   

ASP.NET

 
GeneralRe: Any ideas why gridview is not getting populated with data from the database? Pin
samflex30-Jan-20 5:14
Membersamflex30-Jan-20 5:14 
GeneralRe: Any ideas why gridview is not getting populated with data from the database? Pin
samflex30-Jan-20 5:41
Membersamflex30-Jan-20 5:41 
GeneralRe: Any ideas why gridview is not getting populated with data from the database? Pin
Richard Deeming30-Jan-20 5:47
mveRichard Deeming30-Jan-20 5:47 
GeneralRe: Any ideas why gridview is not getting populated with data from the database? Pin
samflex30-Jan-20 6:45
Membersamflex30-Jan-20 6:45 
GeneralRe: Any ideas why gridview is not getting populated with data from the database? Pin
Richard Deeming30-Jan-20 7:08
mveRichard Deeming30-Jan-20 7:08 
GeneralRe: Any ideas why gridview is not getting populated with data from the database? Pin
samflex30-Jan-20 8:11
Membersamflex30-Jan-20 8:11 
QuestionWriting a client app for OData Pin
simpledeveloper29-Jan-20 7:13
Membersimpledeveloper29-Jan-20 7:13 
QuestionDropdown Filtering in grideview vb.net Pin
Member 315525329-Jan-20 4:16
MemberMember 315525329-Jan-20 4:16 
I am trying to apply filters from one dropdown in a datagrid to another dropdown in the same datagrid and same row. The "edit" screen shot is the most important.

The dropdown under "Chamber" will be used to filter the values in the "District" dropdown. Basically, the "Districts" are tied to a "Chamber". I am having a lot of trouble because of the EditItemTemplate sections.

Thank you for the help in advance!

<!--Term Start-->
                               <asp:GridView CssClass="datatable" ShowFooter="false" ShowHeaderWhenEmpty="true" DataKeyNames="ProfileTermID" DataSourceID="ldsTerms" ID="gvTerms" OnDataBound = "OnDataBound" OnRowCommand="gvTerms_RowCommand" runat="server" AutoGenerateColumns="False">
                                   <HeaderStyle BackColor="#999999" ForeColor="#ffffff" />
                                   <RowStyle CssClass="divRow" />
                                   <EditRowStyle BackColor="#b3d4e8" Height="50px" VerticalAlign="Middle" HorizontalAlign="Center" />
                                   <FooterStyle BackColor="#b3d4e8" Height="50px" VerticalAlign="Middle" HorizontalAlign="Center" />
                                   <EmptyDataTemplate>
                                       Legislator Has No Terms
                                   </EmptyDataTemplate>
                                   <Columns>
                                       <asp:BoundField DataField="ProfileID" HeaderText="ProfileID" />
                                       <asp:TemplateField HeaderText="Term Start Date" ItemStyle-CssClass="divCell">
                                           <EditItemTemplate>
                                               <telerik:RadDatePicker ID="rdtTermStart" Skin="Metro" runat="server" SelectedDate='<%#Eval("TermStartDate")%>'>
                                               </telerik:RadDatePicker>
                                           </EditItemTemplate>
                                           <ItemTemplate>
                                               <%#Eval("TermStartDate", "{0:d}")%>
                                           </ItemTemplate>
                                           <FooterTemplate>
                                               <telerik:RadDatePicker ID="rdtTermStartF" Skin="Metro" runat="server">
                                               </telerik:RadDatePicker>
                                           </FooterTemplate>
                                       </asp:TemplateField>
                                       <asp:TemplateField HeaderText="TermEndDate" ItemStyle-CssClass="divCell">
                                           <EditItemTemplate>
                                               <telerik:RadDatePicker ID="rdtTermEnd" Skin="Metro" runat="server" Width="200px" SelectedDate='<%# IIf(IsDBNull(Eval("TermEndDate")), vbNull, Eval("TermEndDate"))    %>' />
                                           </EditItemTemplate>
                                           <ItemTemplate>
                                               <%# IIf(IsDBNull(Eval("TermEndDate")), vbNull, Eval("TermEndDate", "{0:d}"))    %>
                                           </ItemTemplate>
                                           <FooterTemplate>
                                               <telerik:RadDatePicker ID="rdtTermEndF" Skin="Metro" runat="server">
                                               </telerik:RadDatePicker>
                                           </FooterTemplate>
                                       </asp:TemplateField>
                                       <asp:TemplateField HeaderText="Chamber" ItemStyle-CssClass="divCell">
                                           <EditItemTemplate>
                                               <asp:DropDownList ID="ddChamber" DataSourceID="ldsChambers"  DataTextField="Name" DataValueField="ID" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddChamber_SelectedIndexChanged" SelectedValue='<%# Bind("ChamberID") %>'>
                                               </asp:DropDownList>
                                           </EditItemTemplate>
                                           <ItemTemplate>
                                               <%#Eval("mod_chamber.Name")%>
                                           </ItemTemplate>
                                           <FooterTemplate>
                                               <asp:DropDownList ID="ddChamberF" AutoPostBack="true" OnSelectedIndexChanged="ddChamberF_SelectedIndexChanged"  DataSourceID="ldsChambers" DataTextField="Name" DataValueField="ID" runat="server">
                                               </asp:DropDownList>
                                           </FooterTemplate>
                                       </asp:TemplateField>
                                       <asp:TemplateField HeaderText="Party" ItemStyle-CssClass="divCell">
                                           <EditItemTemplate>
                                               <asp:DropDownList ID="ddParty" DataSourceID="ldsParties" DataTextField="Name" DataValueField="ID" runat="server" SelectedValue='<%# Bind("PartyID") %>'>
                                               </asp:DropDownList>
                                           </EditItemTemplate>
                                           <ItemTemplate>
                                               <%#Eval("mod_party.name")%>
                                           </ItemTemplate>
                                           <FooterTemplate>
                                               <asp:DropDownList ID="ddPartyF" DataSourceID="ldsParties" DataTextField="Name" DataValueField="ID" runat="server">
                                               </asp:DropDownList>
                                           </FooterTemplate>
                                       </asp:TemplateField>
                                       <asp:TemplateField HeaderText="District" ItemStyle-CssClass="divCell">
                                           <EditItemTemplate>
                                               <asp:DropDownList ID="ddDistrict" DataSourceID="ldsDistricts" DataTextField="Name" DataValueField="ID" runat="server">
                                               </asp:DropDownList>
                                           </EditItemTemplate>
                                           <ItemTemplate>
                                               <%#Eval("mod_district.name")%>
                                           </ItemTemplate>
                                           <FooterTemplate>
                                               <asp:DropDownList ID="ddDistrictF" DataTextField="Name" DataValueField="ID" runat="server" >
                                               </asp:DropDownList>
                                           </FooterTemplate>
                                       </asp:TemplateField>
                                       <asp:TemplateField HeaderText="County" ItemStyle-CssClass="divCell">
                                           <EditItemTemplate>
                                               <asp:DropDownList ID="ddCounty" DataSourceID="ldsCounty" DataTextField="Name" DataValueField="ID" runat="server" SelectedValue='<%# Bind("CountyID") %>'>
                                               </asp:DropDownList>
                                           </EditItemTemplate>
                                           <ItemTemplate>
                                               <%#Eval("mod_county.name")%>
                                           </ItemTemplate>
                                           <FooterTemplate>
                                               <asp:DropDownList ID="ddCountyF" DataSourceID="ldsCounty" DataTextField="Name" DataValueField="ID" runat="server">
                                               </asp:DropDownList>
                                           </FooterTemplate>
                                       </asp:TemplateField>
                                       <asp:TemplateField HeaderText="" ShowHeader="False" ItemStyle-CssClass="divCell" ItemStyle-Height="34px">
                                           <EditItemTemplate>
                                               <asp:ImageButton ID="ImageButton6" runat="server" CausesValidation="False" CommandName="Update" Text="Update" ToolTip="Update" ImageUrl="/admin/images/success.png" />
                                           </EditItemTemplate>
                                           <FooterTemplate>
                                               <asp:ImageButton ID="ImageButton3" runat="server" CausesValidation="False" CommandName="Insert" ToolTip="Insert" Text="Insert" ImageUrl="/admin/images/success.png" />
                                           </FooterTemplate>
                                           <ItemTemplate>
                                               <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" ImageUrl="/admin/images/ico_edit_a.png" />
                                           </ItemTemplate>
                                       </asp:TemplateField>
                                       <asp:TemplateField HeaderText="" ShowHeader="False" ItemStyle-CssClass="divCell" ItemStyle-Height="34px">
                                           <ItemTemplate>
                                               <asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" CommandName="Delete" Text="Delete" ImageUrl="/admin/images/ico_delete_a.png" />
                                           </ItemTemplate>
                                           <EditItemTemplate>
                                               <asp:ImageButton ID="ImageButton3" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" ImageUrl="/admin/images/ico_subtract.png" />
                                           </EditItemTemplate>
                                           <FooterTemplate>
                                               <asp:ImageButton ID="ImageButton7" runat="server" CausesValidation="False" CommandName="Cancel_New" Text="Cancel" ImageUrl="/admin/images/ico_subtract.png" />
                                           </FooterTemplate>
                                       </asp:TemplateField>
                                   </Columns>
                               </asp:GridView>
                           </div >
                       </div>

                       <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="CMSmodules.modulesDataContext"
               TableName="mod_Profiles" EnableDelete="True">
           </asp:LinqDataSource>
           <asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="CMSmodules.modulesDataContext"
               EnableInsert="True" EnableUpdate="True" TableName="mod_Profiles" Where="ID == @ID">
               <WhereParameters>
                   <asp:ControlParameter ControlID="lvContent" DefaultValue="0" Name="ID" PropertyName="SelectedValue"
                       Type="Int32" />
               </WhereParameters>
           </asp:LinqDataSource>
           <asp:LinqDataSource ID="ldsTerms" runat="server" ContextTypeName="CMSmodules.ModulesDataContext" EntityTypeName="" TableName="mod_ProfileTerms" EnableDelete="True" EnableInsert="True" EnableUpdate="True">
           </asp:LinqDataSource>

           <asp:LinqDataSource ID="ldsDistricts" runat="server" ContextTypeName="CMSmodules.modulesDataContext"
               TableName="mod_Districts" OrderBy="Name" Select="new (ID, Name)">
           </asp:LinqDataSource>
           <asp:LinqDataSource ID="ldsParties" runat="server" ContextTypeName="CMSmodules.modulesDataContext"
               TableName="mod_Parties" OrderBy="Name" Select="new (ID, Name)">
           </asp:LinqDataSource>
           <asp:LinqDataSource ID="ldsChambers" runat="server" ContextTypeName="CMSmodules.modulesDataContext"
               TableName="mod_Chambers" OrderBy="Name" Select="new (ID, Name)">
           </asp:LinqDataSource>

           <asp:LinqDataSource ID="ldsCounty" runat="server" ContextTypeName="CMSmodules.modulesDataContext"
               TableName="mod_Counties" OrderBy="Name" Select="new (ID, Name)">
           </asp:LinqDataSource>

           <asp:LinqDataSource ID="ldsSessions" runat="server" ContextTypeName="CMSmodules.modulesDataContext"
               TableName="mod_Sessions" OrderBy="Name" Select="new (ID, Name)">
           </asp:LinqDataSource>

QuestionFiles download fails for ipad and iphone clients Pin
alesanndro28-Jan-20 20:34
Memberalesanndro28-Jan-20 20:34 
AnswerRe: Files download fails for ipad and iphone clients Pin
Nathan Minier29-Jan-20 5:42
professionalNathan Minier29-Jan-20 5:42 
GeneralRe: Files download fails for ipad and iphone clients Pin
alesanndro29-Jan-20 6:51
Memberalesanndro29-Jan-20 6:51 
GeneralRe: Files download fails for ipad and iphone clients Pin
Nathan Minier29-Jan-20 9:28
professionalNathan Minier29-Jan-20 9:28 
GeneralRe: Files download fails for ipad and iphone clients Pin
alesanndro30-Jan-20 1:24
Memberalesanndro30-Jan-20 1:24 
GeneralRe: Files download fails for ipad and iphone clients Pin
Nathan Minier30-Jan-20 6:01
professionalNathan Minier30-Jan-20 6:01 
QuestionProcedure or function 'bla' expects parameter '@OrderNumber', which was not supplied. Pin
Johan Hakkesteegt27-Jan-20 21:50
MemberJohan Hakkesteegt27-Jan-20 21:50 
AnswerRe: Procedure or function 'bla' expects parameter '@OrderNumber', which was not supplied. Pin
F-ES Sitecore27-Jan-20 23:20
mveF-ES Sitecore27-Jan-20 23:20 
GeneralRe: Procedure or function 'bla' expects parameter '@OrderNumber', which was not supplied. Pin
Johan Hakkesteegt27-Jan-20 23:50
MemberJohan Hakkesteegt27-Jan-20 23:50 
AnswerRe: Procedure or function 'bla' expects parameter '@OrderNumber', which was not supplied. Pin
Richard Deeming28-Jan-20 1:04
mveRichard Deeming28-Jan-20 1:04 
QuestionDisplaying two images but code is for single image Pin
UDTWS27-Jan-20 19:33
MemberUDTWS27-Jan-20 19:33 
QuestionDynamically updating the site with progress bar Pin
iinfoque11127-Jan-20 7:46
Memberiinfoque11127-Jan-20 7:46 
QuestionRe: Dynamically updating the site with progress bar Pin
ZurdoDev27-Jan-20 9:00
mveZurdoDev27-Jan-20 9:00 
AnswerRe: Dynamically updating the site with progress bar Pin
iinfoque11127-Jan-20 18:58
Memberiinfoque11127-Jan-20 18:58 
GeneralRe: Dynamically updating the site with progress bar Pin
ZurdoDev28-Jan-20 0:26
mveZurdoDev28-Jan-20 0:26 
AnswerRe: Dynamically updating the site with progress bar Pin
David Mujica29-Jan-20 5:57
MemberDavid Mujica29-Jan-20 5:57 
QuestionHow to I fix "The method or operation is not implemented"? Pin
Member 1140330424-Jan-20 8:59
MemberMember 1140330424-Jan-20 8:59 

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.