Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 304
  • Last Modified:

How do you add a no records found and redirect link to the GridView EmptyDataTemplate

How do you add a  "No Records Found - Check your Search Criteria or Click  link below to create new record"
redirect hyperlink is here

to the default gridview empty data template below?

 <EmptyDataTemplate>
    No Records Found
  </EmptyDataTemplate>
0
tcmmaxt
Asked:
tcmmaxt
  • 3
1 Solution
 
David RobitailleAnalyst ProgrammerCommented:
<EmptyDataTemplate>
   No Records Found - Check your Search Criteria or Click  link below to create new record
 </EmptyDataTemplate>
what is the problem?
0
 
tcmmaxtAuthor Commented:
Thank you.  Not sure how to add a redirect hyperlink below message "No Records Found - Check your Search Criteria or Click  link below to create new record"

<EmptyDataTemplate>
  No Records Found - Check your Search Criteria or Click  link below to create new record
WHAT IS REQUIRED HERE TO ADD A HYPERLINK LINK HERE TO NAVIGATE USER TO ANOTHER PAGE
 </EmptyDataTemplate>

0
 
David RobitailleAnalyst ProgrammerCommented:
ha, ok : just replase the bold underlined texts
<EmptyDataTemplate>
  No Records Found - Check your Search Criteria or Click  link below to create new record
<asp:HyperLink ID="Link" runat="server"
Text="HYPERLINK text" NavigateUrl="Other page URL" />
 </EmptyDataTemplate>  
0
 
David RobitailleAnalyst ProgrammerCommented:
you may also add a line break
<EmptyDataTemplate>
 No Records Found - Check your Search Criteria or Click  link below to create new record <br />
<asp:HyperLink ID="Link" runat="server"
Text="HYPERLINK text" NavigateUrl="Other page URL" />
</EmptyDataTemplate>  
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now