I have a URL button in C#, i need to open it in new tab but i dont know how.
Any help will be appreciated
If you look at the ASP Object reference you can see the Button Object has a variety of methods:
community.sagecrm.com/.../Default_CSH.htm
Try setting the Target property to be "_blank"
Thank you for your replay, but im creating a button in c# like this
AddUrlButton("Print", "list.gif", UrlDotNet(ThisDotNetDll, "RunPrintTemplateNodes")) so i dont know how to use a target property
Hi Hasmik,
Do you mean a browser tab or a Sage CRM tab?
If you mean a browser tab then you should be able to output the AddUrlButton result to a variable and then do a string replace.
Excuse my C# it may be a little rusty, but something like this:
string variable = AddUrlButton("Print", "list.gif", UrlDotNet(ThisDotNetDll, "RunPrintTemplateNodes"));
variable.Replace("", "");
Response.Write(variable);
Kind Regards
Julian
Hi Jack D
actually you need to add HTML attribute named "target" equal value "_blank" on link button
just add this script on screen custom content :
$(document).ready(function(){
$("a[href*='RunPrintTemplateNodes']").attr("target", "_blank");
})javascript:void(0);
Abdulah
*Community Hub is the new name for Sage City