If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

if then else statement into ClientScript function(ASP .NET)

I am not so familiar with java Script, for that reason I need your help and advice!! I have the following code in my asp button when is clicked. When the confirm box is displayed the user has two choices either to select OK or Cancel. The following code works in both of cases either OK or Cancel.

However, what I am trying to do is to perform an if/then/else statement using javascript inside ClientScript function, and I don't know the correct syntax of that. e.g what I am trying to do is redirect to another pages if the user selects ok or cancel