Hi guys,
It's been a along time. Hope someone can help me.
I am using VS 2005 and language C#
I have some fields on a form
1) an 'AccountNo" drop down list and an "ALL" check box next to it
2)a "descriptio n" text box
3)A find button
The results of the search is handled by a stored procedure and shown on a gridview on another page.
If the All check box is checked then i disabled the drop down list and the text box because that menas that the user wants to search for all Accounts and therefore doesnt need to fill in the AccountNo or description. This is done via Autopostback on the All checkbox control and the checkchanged event. This works fine.
My problem is that when the page initially loads for the first time and the user presses the check box and then presses the find button, no results are displayed. However, if they go back into the form and search on something else, say a particular AccountNo and presses find button it works fine. Then if they go back and check the ALLcheck box and press find button it works......Why doesnt it work the very first time.
I have no code in my Page_Load method of either of my 2 pages.
I am thinking it has something to do with posting back....can someone please help me?
It's been a along time. Hope someone can help me.
I am using VS 2005 and language C#
I have some fields on a form
1) an 'AccountNo" drop down list and an "ALL" check box next to it
2)a "descriptio n" text box
3)A find button
The results of the search is handled by a stored procedure and shown on a gridview on another page.
If the All check box is checked then i disabled the drop down list and the text box because that menas that the user wants to search for all Accounts and therefore doesnt need to fill in the AccountNo or description. This is done via Autopostback on the All checkbox control and the checkchanged event. This works fine.
My problem is that when the page initially loads for the first time and the user presses the check box and then presses the find button, no results are displayed. However, if they go back into the form and search on something else, say a particular AccountNo and presses find button it works fine. Then if they go back and check the ALLcheck box and press find button it works......Why doesnt it work the very first time.
I have no code in my Page_Load method of either of my 2 pages.
I am thinking it has something to do with posting back....can someone please help me?
Comment