onedizzydevil
Programmer
I have one page (search.aspx). I make serveral pagelets or user controls (wc_search.ascx, wc_results.ascx, wc_details.ascx) which does not contain buttons just a Data Repeater or form fields.
I dragged them all the user controls on the search.aspx page set them all to visible = false wrote the "Protected WithEvents ..." line of code for each in the codebehind and dragged two buttons on the screen btnNext, btnPrevious. Additionally, each user controls has Set and Get Properties to either get or set control (textbox) or variable values.
The board objective is to take information from a user control (for example, wc_search.ascx) and set values in another user control (for example wc_results.ascx) so it could use that data to populate itself. For example, you may have in wc_search.ascx a textbox that will contain information to filter your search results, I want to pull that information out the control to the search.aspx page and then push it up to the wc_results.ascx control which will the run a query and popular the Data Repeater Control that resides in the user control.
The problem is this. I can get the data from the control to the search.aspx page or I can manually pass the value from the search.aspx to the usercontrol; however, because of the way the Page_load routines run on the pages/pagelets the values are not being set in the user control at the right time in order for the code to process correctly.
Has anyone had any experience with this and would like to share, or can you give me some ideas on how to fix this? I would greatly appreciate it.
Wayne Sellars
"Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger and better idiots. So far, Universe 1 - Programmers 0."
I dragged them all the user controls on the search.aspx page set them all to visible = false wrote the "Protected WithEvents ..." line of code for each in the codebehind and dragged two buttons on the screen btnNext, btnPrevious. Additionally, each user controls has Set and Get Properties to either get or set control (textbox) or variable values.
The board objective is to take information from a user control (for example, wc_search.ascx) and set values in another user control (for example wc_results.ascx) so it could use that data to populate itself. For example, you may have in wc_search.ascx a textbox that will contain information to filter your search results, I want to pull that information out the control to the search.aspx page and then push it up to the wc_results.ascx control which will the run a query and popular the Data Repeater Control that resides in the user control.
The problem is this. I can get the data from the control to the search.aspx page or I can manually pass the value from the search.aspx to the usercontrol; however, because of the way the Page_load routines run on the pages/pagelets the values are not being set in the user control at the right time in order for the code to process correctly.
Has anyone had any experience with this and would like to share, or can you give me some ideas on how to fix this? I would greatly appreciate it.
Wayne Sellars
"Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger and better idiots. So far, Universe 1 - Programmers 0."