Solved

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

Posted on 2009-04-02
4
296 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

617 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