0

Is it possible to open a page in new tab from code behind?

SajjadZare
  • 2,487
  • 4
  • 38
  • 68

2 Answers2

0

You can try this

  Response.Write '<script type="text/javascript"> window.open(url);

or take a look at jems answer

or you can use window.open command

Community
  • 1
  • 1
syed mohsin
  • 2,948
  • 2
  • 23
  • 47
  • the first one, jems answer set url for OnClientClick but i want to use it in a function and call it when i need – SajjadZare Feb 27 '13 at 12:51
0

If you use a hyperlink you can just add target="blank" attribute.

Gericke
  • 2,109
  • 9
  • 42
  • 71