Jump to content

Button click to open in new tab?

Featured Replies

Hi..Am using asp.net. How to open the new tab at the time of button click? using c#.net

 

Thanks in Advance

 

You can use JavaScript to open a new tab:

 

Button_name.Attributes.Add("onclick", "javascript:window.open('anysite')");

 

 

 

 

 

---------------------------------------

 

University Books

 

 

 

  • 2 weeks later...
  • Author

Thank you for your information

You can use JavaScript to open a new tab:

 

Button_name.Attributes.Add("onclick", "javascript:window.open('anysite')");

 

 

 

 

 

---------------------------------------

 

University Books

 

 

 

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.