I am trying vainly to get two webusercontrol.ascx (WUC) to work together.
My issue seems huge.
I thought it would be easy to create a WUC (Cal.ascx) containing a calendar control, select a date from a calendar control and somehow use that event to pass the date as a parameter to another (results.ascx) that would a) use the parameter and b) start an event to process a data access procedure to fill a date grid with results.
Simple? 5 days of reading and experimenting and absolutely nowhere.
My issue is fundemental. I have even created a testbed.aspx to try understand what it is I dont know, and things are getting even worse. I found a document on the web which claims to deal with mastering page-usercontrol communications but it does not help, although proves it should be possible. The article is badly written and the examples unworkable for me.
At this moment, I have the following questions
1) Is there a nice working example (Wrox?) I've read two of their asp.net books to no avail. If I could see an example of one control (including code) working with another on the same page it might help.
2) Could anyone explain what the process is (with working examples). I cant even figure out how to set a property in a WUC from a process on the page and then use the property value later. That question will explain just how little I understand about classes and inheritance and stuff.
Sorry, but i come from the world of SQL\Access VBA were event driven programming seemed easy. I cant believe that ASP.NET (in this aspect) is so scary.
On a positive note, The date access with SQL capabilities are so easy with ASP.Net. I was absolutely flying along until I hit this.
I am using VS (
VB) 2003
Regards