Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I want to execute `window.open()` command taking part in openLoginPopup() Method with C#. JS.Code link source is below .Please help with me .Thanks

https://ebeyanname.gib.gov.tr/js/index.js
Posted
Updated 11-Aug-11 4:37am
v3

1 solution

For eg,

you want to execute window.open() on button click

use this on Page_Load

Button1.Attributes.Add("javascript: onclick","openLoginPopup()")
 
Share this answer
 
v2
Comments
Syed Salman Raza Zaidi 9-Aug-11 3:53am    
This will work if you have your JS defined in same file(ie .aspx file) in <script> tag
beratxt 11-Aug-11 10:35am    
hi,
but codes are in https://ebeyanname.gib.gov.tr/js/index.js. how can i give url to this .js in Button1.Attributes()..? thanks for in advance

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900