Solved

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

Posted on 2009-04-02
4
295 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

Suggested Solutions

Title # Comments Views Activity
Generate Unique ID in VB.NET 21 137
VStudio 2015 WebAPi works fine from local debug not working from published IIS7 1 39
Query in AngularJS 8 84
Web page design problem 3 42
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 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