Quantcast
Channel: SharePoint 2013 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 26374

list template based url new.aspx opened in new tab and click on Close button,why it's not responding.

$
0
0

In Visual Webpart,add hyperlink propert in Ediotr toolpane like below.



Then after i provided the code like below for hyperlink:

 hfCreateList = new HyperLink();
            hfCreateList.Text = "Click here to Create List";
             hfCreateList.Attributes.Add("href", SPContext.Current.Site.Url + "/_layouts/15/new.aspx?CustomTemplate=ExpandCollapse%2Estp&FeatureId=%7B00bfea71%2Dde22%2D43b2%2Da848%2Dc05709900100%7D&ListTemplate=100&              hfCreateList.Attributes.Add("Target","_blank");

            hfCreateList.Attributes.Add("href", "linkurl");

 After that i clcick in the link 'Click here to Create List' i have a new tab opened with the above url.

If i click on Cancel button in that window,It wont responded.

Pls help why its not working new tab.


Viewing all articles
Browse latest Browse all 26374

Trending Articles



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