I have a search button to apply the search variables for text boxes and dropdownlists & textboxes.
I have an original posting in the VB.net 2005 forum here...
upon clicking the search button...
Protected Sub btnSearch_Click
SqlSearchErrors.DataBind()
end sub
This does not update my Gridview1 with the results?
In the designer I have tested my query and it does give me results.
to test out my dropdownlist values I re did my sql statement to only bind to my dropdownlist. which displays my values in the gridview upon loading the page. not by the search button click event.
How do I invoke the bind for the text box values by using my button click control? I mean, what is the point of the designer bind fields if it will not take the textbox values upon a request? I know I am missing something simple here.
Shouldn't the designer know to bind with the text box controls automatically and update my gridview just like changing the selected item in the dropdownlist would update the gridview?
Thanks
I have an original posting in the VB.net 2005 forum here...
upon clicking the search button...
Protected Sub btnSearch_Click
SqlSearchErrors.DataBind()
end sub
This does not update my Gridview1 with the results?
In the designer I have tested my query and it does give me results.
to test out my dropdownlist values I re did my sql statement to only bind to my dropdownlist. which displays my values in the gridview upon loading the page. not by the search button click event.
How do I invoke the bind for the text box values by using my button click control? I mean, what is the point of the designer bind fields if it will not take the textbox values upon a request? I know I am missing something simple here.
Shouldn't the designer know to bind with the text box controls automatically and update my gridview just like changing the selected item in the dropdownlist would update the gridview?
Thanks