S
shil
I have a server side button that needs to do some preperation and
afterwards, if everything goes well, open a new browser with a specific
url.
I know how to execute javascript from a server side control, adding the
javascript to the attributes. I need to open the browser window AFTER
the code behind event is finished.
For example I have two text boxes on the form, whose values I want to
send as parameters to the URL that I want to open on server side button
click. I wrote code to add attributes to that button Onclick. What
happens is when I click on the button, it is adding attribute to that
button. The second click is opening the new browser. But I want to open
the new browser on first click.
Is there any way to accomplish this?
Thanks,
Shil.
afterwards, if everything goes well, open a new browser with a specific
url.
I know how to execute javascript from a server side control, adding the
javascript to the attributes. I need to open the browser window AFTER
the code behind event is finished.
For example I have two text boxes on the form, whose values I want to
send as parameters to the URL that I want to open on server side button
click. I wrote code to add attributes to that button Onclick. What
happens is when I click on the button, it is adding attribute to that
button. The second click is opening the new browser. But I want to open
the new browser on first click.
Is there any way to accomplish this?
Thanks,
Shil.