P
pargat singh
Hi ,
I have two listbox say ls1 and ls2 and both have same value like
deptno and one datagrid. when i select value from first ls1 it
populate datagrid with selected value deptno e.g deptno 10, fill
datagrid with all employee from deptno 10.I need when i select value
from second ls2 before i rebond data i want to display confirm boxwith
yes or no button.Below is my code
Private Sub ls1_SelectedIndexChanged(ByVal sender As Object, ByVal e
As System.EventArgs) Handles lstJobs.SelectedIndexChanged
call Populatedatagrid() ' This will pouplate datagrid.
ls2.Attributes.Add("onchange", "return confirm('Are you sure
you want to rebind datagrid?');")
End Sub
It is working fine means when i change value i am getting confirmbox.
My queston is how do i capture response value .Like if Ok rebind
otherwise no.
Any help is much appricate.
Gill
I have two listbox say ls1 and ls2 and both have same value like
deptno and one datagrid. when i select value from first ls1 it
populate datagrid with selected value deptno e.g deptno 10, fill
datagrid with all employee from deptno 10.I need when i select value
from second ls2 before i rebond data i want to display confirm boxwith
yes or no button.Below is my code
Private Sub ls1_SelectedIndexChanged(ByVal sender As Object, ByVal e
As System.EventArgs) Handles lstJobs.SelectedIndexChanged
call Populatedatagrid() ' This will pouplate datagrid.
ls2.Attributes.Add("onchange", "return confirm('Are you sure
you want to rebind datagrid?');")
End Sub
It is working fine means when i change value i am getting confirmbox.
My queston is how do i capture response value .Like if Ok rebind
otherwise no.
Any help is much appricate.
Gill