Hi Colin,
I am sorry if there is any misunderstanding.
After reviewing your response, I have a little puzzle on your issue.
As I understand, you developed a UserControl, an ascx file, which contains
a Calendar server control. Then you instantiate the user control in a web
page.
In another web page, you use the Server.Transfer to invoke the web page
where the user control was located.
However, the problem is that in this situation, some events on the Calendar
inside the user control are not fired as expected.
On my side, to reproduce the issue, I did the following tests.
1. Create a web user control, a class inherits from
System.Web.UI.UserControl.
2. Drag and drop a Calendar control onto the user control.
3. Put a Response.Write statement inside the SelectionChanged handler of
the calendar control.
4. Create a web page and drag the ascx file (the user control) onto this
web page.
5. Create another webpage, which contains a button. In the click event of
the button, I just do the following thing:
Server.Transfer("the web page where the user control was located")
6. Set the web page created in step 5 as the start web page. Compile and
run the application. When the web page launches up, click the button to
trigger the Servevr.Transfer.
7. When the web page where the user control comes up, I click certain day
on the Calendar control, the SelectionChanged event is fired successfully.
If I have misunderstood your concern, please feel free to let me know.
Best regards,
Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.