Click here to Skip to main content
15,884,298 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSQL and IIS error when publish an ASP .NET application to IIS Pin
Stephen Holdorf30-Jan-20 12:54
Stephen Holdorf30-Jan-20 12:54 
AnswerRe: SQL and IIS error when publish an ASP .NET application to IIS Pin
phil.o30-Jan-20 13:07
professionalphil.o30-Jan-20 13:07 
QuestionHow do I solve error StatusCode: 500? Pin
Member 1140330430-Jan-20 4:01
Member 1140330430-Jan-20 4:01 
AnswerRe: How do I solve error StatusCode: 500? Pin
Richard Deeming30-Jan-20 4:10
mveRichard Deeming30-Jan-20 4:10 
GeneralRe: How do I solve error StatusCode: 500? Pin
Member 1140330430-Jan-20 4:44
Member 1140330430-Jan-20 4:44 
QuestionHTTP Error 500.19 - Internal Server Error - The requested page cannot be accessed because the related configuration data for the page is invalid Pin
simpledeveloper29-Jan-20 12:09
simpledeveloper29-Jan-20 12:09 
AnswerRe: HTTP Error 500.19 - Internal Server Error - The requested page cannot be accessed because the related configuration data for the page is invalid Pin
Richard Deeming30-Jan-20 1:06
mveRichard Deeming30-Jan-20 1:06 
GeneralRe: HTTP Error 500.19 - Internal Server Error - The requested page cannot be accessed because the related configuration data for the page is invalid Pin
simpledeveloper30-Jan-20 14:28
simpledeveloper30-Jan-20 14:28 
Question(SOLVED) Any ideas why gridview is not getting populated with data from the database? Pin
samflex29-Jan-20 9:30
samflex29-Jan-20 9:30 
SuggestionRe: Any ideas why gridview is not getting populated with data from the database? Pin
Richard Deeming30-Jan-20 1:02
mveRichard Deeming30-Jan-20 1:02 
GeneralRe: Any ideas why gridview is not getting populated with data from the database? Pin
samflex30-Jan-20 3:58
samflex30-Jan-20 3:58 
GeneralRe: Any ideas why gridview is not getting populated with data from the database? Pin
Richard Deeming30-Jan-20 4:05
mveRichard Deeming30-Jan-20 4:05 
GeneralRe: Any ideas why gridview is not getting populated with data from the database? Pin
samflex30-Jan-20 4:20
samflex30-Jan-20 4:20 
GeneralRe: Any ideas why gridview is not getting populated with data from the database? Pin
Richard Deeming30-Jan-20 4:53
mveRichard Deeming30-Jan-20 4:53 
GeneralRe: Any ideas why gridview is not getting populated with data from the database? Pin
samflex30-Jan-20 5:14
samflex30-Jan-20 5:14 
GeneralRe: Any ideas why gridview is not getting populated with data from the database? Pin
samflex30-Jan-20 5:41
samflex30-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
samflex30-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
samflex30-Jan-20 8:11 
QuestionWriting a client app for OData Pin
simpledeveloper29-Jan-20 7:13
simpledeveloper29-Jan-20 7:13 
QuestionDropdown Filtering in grideview vb.net Pin
Member 315525329-Jan-20 4:16
Member 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!

ASP.NET
<!--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
alesanndro28-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
alesanndro29-Jan-20 6:51 

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.