B
bienwell
Hi all,
I have a button in aspx file
<asp:button id="Button1" onclick="Button1_Click" runat="server"
Text="Button ..."></asp:button>
Sub Button1_Click(sender As Object, e As EventArgs)
some VB lines of code ....
If condition1 Then
Confirmation Message_1 (Message 1)
If click 'Yes ' Then
Do_Yes1
Else
Do_No1
End If
ElseIf condition2 Then (Message 2)
If click 'Yes ' Then
Do_Yes2
Else
Do_No2
End If
End If
End Sub
I know we cannot get the value return from JavaScript back to VBScript , in
this case, when we pop up confirmation message. Is there other way that we
can build somthing in VB program that looks like a confirmation box in
Javascript which has 2 button 'Yes' and 'No' and perform VB codes when we
click on it ? And the box will be disappear after we click on the button ?
If you have ever do it, please give me your source code.
Many thanks.
I have a button in aspx file
<asp:button id="Button1" onclick="Button1_Click" runat="server"
Text="Button ..."></asp:button>
Sub Button1_Click(sender As Object, e As EventArgs)
some VB lines of code ....
If condition1 Then
Confirmation Message_1 (Message 1)
If click 'Yes ' Then
Do_Yes1
Else
Do_No1
End If
ElseIf condition2 Then (Message 2)
If click 'Yes ' Then
Do_Yes2
Else
Do_No2
End If
End If
End Sub
I know we cannot get the value return from JavaScript back to VBScript , in
this case, when we pop up confirmation message. Is there other way that we
can build somthing in VB program that looks like a confirmation box in
Javascript which has 2 button 'Yes' and 'No' and perform VB codes when we
click on it ? And the box will be disappear after we click on the button ?
If you have ever do it, please give me your source code.
Many thanks.