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.