Hello Everyone,
i'm having a gridview wich list clients details. i have setup a search text box and a dropdownlist for filtering. Everything is working except when i try to navigate the next page....i'm getting the filter results and not the search ones....i have created a Hidden control and store the search value... i'm still having problem with this.
Anyone have a solution or run into similar situation?
code snapshot:
Cheers
i'm having a gridview wich list clients details. i have setup a search text box and a dropdownlist for filtering. Everything is working except when i try to navigate the next page....i'm getting the filter results and not the search ones....i have created a Hidden control and store the search value... i'm still having problem with this.
Anyone have a solution or run into similar situation?
code snapshot:
Code:
Protected Sub submit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles submit.Click
If ddlVenue.SelectedValue <> "" Then
Hidden.Value = txtSearch.Text
LeaderBrd.DataSource = GetClients(Trim(Hidden.Value), "NAME")
LeaderBrd.DataBind()
End If
End Sub
Protected Sub ddlVenue_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlVenue.SelectedIndexChanged
If (ddlVenue.SelectedValue <> "") Then
txtSearch.Enabled = True
submit.Enabled = True
Else
txtSearch.Enabled = False
submit.Enabled = False
End If
Hidden.Value = ""
LeaderBrd.DataSource = GetClients(ddlVenue.SelectedValue, "VENUE")
LeaderBrd.DataBind()
End Sub