Ask a Question related to ASP.NET General, Design and Development.
-
Michael Craig #1
Handling Events: Web user control VS. Std ASPX page
Hello,
I have written an application using the calendar control in a regular aspx
application, to prove I could get the functionality I wanted. Which is to
display the current month and populate the date cells with events kept in a
database. I'm using the DayRender event of the calendar control to query the
database and insert new label controls into each cell, for each event.
Here's the problem..
When using the same logic in a web user control (.ascx) the events to not get
redrawn when the selected month is changed. (ie. July is displayed on load with
an event on the 4th displayed, you select August and return to July, but the
event is not displayed) I have tried with view stated enabled and disabled. It
seems like the DayRender event is not fired on a VisibleMonthChanged event, but
only when it's inside a user control. In my test app (.aspx) it seems to work
fine.
Any ideas?
I'll attach the .ascx file for your perusal...
Thanks in advance!
Michael
p.s. This will be used in the IBuySpy Portal application (if that helps)
Michael Craig Guest
-
acces controls on aspx page from user control
Hello, I'm trying to access a Label Control on my .aspx page from a User Control. But I don't manage it. Do somebody help me to do that ? My... -
How to pass variables from aspx page to user control
Hi, Anybody knows how to pass variables from aspx page to user control? Thanks in advance -------------------------------- From: Sathyadeva... -
Dynamically adding a user control to aspx page
I am using an aspx page called USProfile.aspx. It has a placeholder control. A user control called USData is added to placeholder control... -
(vb.net) Handling user-control events
I created a web-project containg an .aspx file and a self- made User-Control (.acsx file) - all in vb.net. My aspx file contains a Submit button... -
user control and order of events in page
Pease be excuse the poorly phrased question. I'm a bit confused: I've got a user control that accepts username and password values submitted...



Reply With Quote

