Solved

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

Posted on 2009-04-02
4
291 Views
Last Modified: 2012-06-21
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
Comment
Question by:tcmmaxt
  • 3
4 Comments
 
LVL 18

Expert Comment

by:David Robitaille
Comment Utility
<EmptyDataTemplate>
   No Records Found - Check your Search Criteria or Click  link below to create new record
 </EmptyDataTemplate>
what is the problem?
0
 

Author Comment

by:tcmmaxt
Comment Utility
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
 
LVL 18

Expert Comment

by:David Robitaille
Comment Utility
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
 
LVL 18

Accepted Solution

by:
David Robitaille earned 500 total points
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now