0
I’m trying to open a new page in a different tab, through aspx, I got a code on the internet that does this, however, it only works with clicks.
follows the code
LinkButton1.Attributes.Add("onclick", "window.open('../conheca-os-alimentos-aprovacao.aspx');return false;");
Can someone help me!
Friend, I don’t know anything about Asp.net, but following the logic of what you posted, try to do the following: Linkbutton1.Attributes.Add("href", "http://google.com"); Linkbutton1.Attributes.Add("target", "_Blank");
– Jefferson Silva