Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

show popup with text without redirecting

$
0
0
           

Hi , I am using sharepoint 2013 asp HyperLink control .  See my code below,

Here if part working perfectly.

How to show the same pop up box without url in else block.

For Example i want to show "No item found" in popup

if (ViewState["Share"] != null)
            {
                string url= "https://www.google.co.in"                
                HyperLink1.NavigateUrl = "javascript:SP.UI.ModalDialog.ShowPopupDialog('" + url + "')";
            }
  else
            {
                         // what code here

            }

Thanks in advance

                                            

Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>