Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7898369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:24:51+00:00 2026-06-03T08:24:51+00:00

I have an ASP .NET Web Application that queries and shows data from a

  • 0

I have an ASP .NET Web Application that queries and shows data from a database using ListView Control. When I run the Web App on the browser it works fine, but when I delete or add something in the database, then refresh the browser where the web app is running, its output does not update. How can I make my Web App update when refreshed?

This is the code for the ListView:

 <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource">
    <ItemTemplate>
        <tr style="">
            <td>
              <asp:Label ID="HotfixIDLabel" runat="server" Text='<%# Eval("HotfixID") %>' /> 
            </td>
            <td>
             <asp:Label ID="DescriptionLabel" runat="server" 
                    Text='<%# Eval("Description") %>' /> 
            </td>
            <td>
              <asp:Label ID="DateLabel" runat="server" Text='<%# Eval("Date") %>' /> 
            </td>
        </tr>
    </ItemTemplate>
    <AlternatingItemTemplate>
        <tr style="">
            <td>
                <asp:Label ID="HotfixIDLabel" runat="server" Text='<%# Eval("HotfixID") %>' />
            </td>
            <td>
               <asp:Label ID="DescriptionLabel" runat="server" 
                    Text='<%# Eval("Description") %>' />  
            </td>
            <td>
                <asp:Label ID="DateLabel" runat="server" Text='<%# Eval("Date") %>' />
            </td>
        </tr>
    </AlternatingItemTemplate>
    <EmptyDataTemplate>
        <table runat="server" style="">
            <tr>
                <td>
                    No data was returned.</td>
            </tr>
        </table>
    </EmptyDataTemplate>
    <InsertItemTemplate>
        <tr style="">
            <td>
                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                    Text="Insert" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="Clear" />
            </td>
            <td>
                <asp:TextBox ID="HotfixIDTextBox" runat="server" 
                    Text='<%# Bind("HotfixID") %>' />
            </td>
            <td>
                <asp:TextBox ID="DescriptionTextBox" runat="server" 
                    Text='<%# Bind("Description") %>' />
            </td>
            <td>
                <asp:TextBox ID="DateTextBox" runat="server" Text='<%# Bind("Date") %>' />
            </td>
        </tr>
    </InsertItemTemplate>
    <LayoutTemplate>
        <table runat="server" border="0">
            <tr runat="server">
                <td runat="server">
                    <table ID="itemPlaceholderContainer" runat="server"  style="">
                        <tr runat="server" style="">
                              <th id="Th1" runat="server" align="left">
                <asp:LinkButton ID="LinkButton0" runat="server" CommandName="Sort" CommandArgument="HotfixID" Width="140">Update ID</asp:LinkButton></th>
            <th id="Th2" runat="server">
               <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Sort" CommandArgument="Description" Width="600">Description</asp:LinkButton> </th>
            <th id="Th3" runat="server">
               <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Sort" CommandArgument="Date" Width="100">Date</asp:LinkButton> </th>
                        </tr>
                        <tr ID="itemPlaceholder" runat="server">
                        </tr>
                    </table>
                </td>
            </tr>
            <tr runat="server">
                <td runat="server" style="">
                </td>
            </tr>
        </table>
    </LayoutTemplate>
    <EditItemTemplate>
        <tr style="">
            <td>
                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                    Text="Update" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="Cancel" />
            </td>
            <td>
                <asp:TextBox ID="HotfixIDTextBox" runat="server" 
                    Text='<%# Bind("HotfixID") %>' />
            </td>
            <td>
                <asp:TextBox ID="DescriptionTextBox" runat="server" 
                    Text='<%# Bind("Description") %>' />
            </td>
            <td>
                <asp:TextBox ID="DateTextBox" runat="server" Text='<%# Bind("Date") %>' />
            </td>
        </tr>
    </EditItemTemplate>
    <SelectedItemTemplate>
        <tr style="">
            <td>
                <asp:Label ID="HotfixIDLabel" runat="server" Text='<%# Eval("HotfixID") %>' />
            </td>
            <td>
                <asp:Label ID="DescriptionLabel" runat="server" 
                    Text='<%# Eval("Description") %>' />
            </td>
            <td>
                <asp:Label ID="DateLabel" runat="server" Text='<%# Eval("Date") %>' />
            </td>
        </tr>
    </SelectedItemTemplate>
</asp:ListView>
<asp:SqlDataSource ID="SPDataSource" runat="server" 
    ConnectionString="<%$ ConnectionStrings:addremovefinalConnectionString %>" 
    SelectCommand="sp_getupdatesSP_v3" SelectCommandType="StoredProcedure" 
    onselecting="SPDataSource_Selecting">
    <SelectParameters>
        <asp:ControlParameter ControlID="ComboBox1" Name="param" 
            PropertyName="SelectedValue" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:24:52+00:00Added an answer on June 3, 2026 at 8:24 am

    Well, as the comments alluded to, clearly the page is being cached. You can verify this by adding a directive to the top of your page:

    <%@ OutputCache Location="None" %>
    

    That means that your database will be hit for every request, though. For a better solution I recommend looking into SQL cache dependencies.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET web application that is using forms authentication. Everything is configured
I have an ASP.net web service that I'm using for a web application which
I have an ASP.NET Web Application that constantly monitors for new RSS Feed from
I have an ASP.NET web forms application that pulls email from an IMAP account.
I have an asp.net web application that is using a MembershipProvider and RolesProvider that
I Have an asp.net web application that access files on shared folder from remote
I have an ASP.NET web application that has a fileupload control to allow users
I have an ASP.NET web application that, for whatever reason, when it is deployed
We have a asp.net 2.0 web application that is running on IIS7. It is
Suppose you have two seperate ASP.NET Web Application projects that both need to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.