Solved

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

Posted on 2009-04-02
4
293 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
ID: 24053910
<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
ID: 24054181
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
ID: 24054234
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
ID: 24054244
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 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