Already I have a piece of code in
If Not Page.IsPostBack Then
btnAddSub.Visible = False
btnExportToExcel.Visible = False
btnExtract.Visible = True
gvBVALPrices.Visible = False
End If
On the click event of the button , i have the following code which shows the check box.
Protected Sub btnAddSub_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddSub.Click
dv.Visible = True
chkColumns.Items.Clear()
Dim count As Integer = gvBVALPrices.Columns.Count
Dim i As Integer
For i = 0 To count - 1
chkColumns.Items.Add(gvBVALPrices.Columns(i).ToString)
Next
chkColumns.Items(0).Selected = True
chkColumns.Items(1).Selected = True
chkColumns.Items(2).Selected = True
chkColumns.Items(3).Selected = True
chkColumns.Items(4).Selected = True
chkColumns.Items(5).Selected = True
End Sub
So please provide me a jquery to prevent the page load on the button click event.