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 3481698
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:28:34+00:00 2026-05-18T10:28:34+00:00

Hi I am developing a web page which will give the details of customer.

  • 0

Hi I am developing a web page which will give the details of customer. I have several validations for input fields and used DetailsView for displaying details of customer. If the user details does not exist in database Detailsview displays a message “No records found”. Now if I enters an invalid user name validations are displayed but page still have the “No records found” message in EmptyDataTemplate of DetailsView. How can I remove “No records found” message or disable details view ? So that page should only show error messages and textbox fields.

   <asp:TextBox ID="TextBox_FirstName" runat="server"></asp:TextBox>
   <asp:RegularExpressionValidator ID="RegularExpressionValidator_FirstName" runat="server"
        ControlToValidate="TextBox_FirstName" ErrorMessage="Enter a valid SSN" ForeColor="Red"
        SetFocusOnError="True">*</asp:RegularExpressionValidator>
    <br />
   <asp:TextBox ID="TextBox_LastName" runat="server"></asp:TextBox>
   <asp:RegularExpressionValidator ID="RegularExpressionValidator_LastName" runat="server"
        ControlToValidate="TextBox_LastName" ErrorMessage="Enter a valid date" ForeColor="Red">*</asp:RegularExpressionValidator>
   <asp:Button ID="txtSubmit" Text="Validate" runat="server" />
   <asp:CustomValidator ID="AtLeastOneTextBoxValidator" runat="server" ClientValidationFunction="Validate_Textbox"
        ValidateEmptyText="true"> </asp:CustomValidator>
    <asp:ValidationSummary ID="ValidationSummary" runat="server" />

    <asp:DetailsView ID="Client_DetailsView" runat="server">
        <EmptyDataTemplate>
             <strong>No Record Found.</strong>
        </EmptyDataTemplate>
    </asp:DetailsView> 
  • 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-05-18T10:28:35+00:00Added an answer on May 18, 2026 at 10:28 am

    Change your code behind so that Client_DetailsView only gets data bound when they submit the form.

    Also, set it’s visibility to hidden in the .aspx then only set it to visible when the form is submitted.

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

Sidebar

Related Questions

I am developing a web application which will be added as a custom page
I am developing web pages which reference external links/images/stylesheets etc. I have 1 page
I am currently developing a web application which will be used by multiple clients,
I am developing a web application, in which I have used session management to
I'm developing web page which has main file index.php as follows: include('UserClass.php'); include('html/top.php'); $user
i am developing a java web application which will be browsed using iPad safari
I'm developing a MVC 3 Razor Web App, in which details of multiple categories
I'm developing an Android app that fetches a web page from a website which
I am in the early stages of developing an Azure web project which will
I have a Web page here that i am developing to further my knowledge

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.