473,387 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem with Calander Control Day Render Event

I am using the Day Render Event to place a red * on each
day where there is at least one event. This works fine on
my local machine. It however does not work on the
production server. The following is my code:

I even tried it removing the if completely. Just writing
the literal control to every cell no matter what and that
did not work on the production server either.

Please help. P.S. I know I have uploaded the code
correctly because other changes I have made appear
correctly.

Here is my code.

Private Sub cldActivityDate_DayRender(ByVal sender As
System.Object, ByVal e As
System.Web.UI.WebControls.DayRenderEventArgs) Handles
cldActivityDate.DayRender
Dim dr() As DataRow
Dim r As DataRow
Try
dr = CType(Session("dsLAStateData"),
dsLAStateData).Iteneraries.Select("EmployeeID=" & CType
(Session("UserInfo"), UserInfo).ID)
For Each r In dr
If r.Item("Activity Date") = e.Day.Date
Then

e.Cell.Controls.AddAt(1, New
LiteralControl("<font color=red>*</font>"))
'e.Cell.Controls.AddAt
(e.Cell.Controls.Count - 1, New LiteralControl("<font
color=red>*</font>"))
Exit Sub
End If
Next
Catch ex As Exception
lblError.Text = ex.Message & " in
cldActivityDate_DayRender"
End Try
End Sub
Jul 19 '05 #1
2 3501
Hi Billy,

I built a test Web application, and it works properly on my side. I think
more information is needed before moving forward:

1. Do you receive any error message or exception when it fails to work on
the production server?

2. Please compare the version of .NET Framework installed on your local and
production machine. I recommend you check the version of System.Web.dll and
aspnet_isapi.dll. I'd like to perform the following steps to check
aspnet_isapi.dll:

a. Go to "Control Panel" -> "Administrative Tools" -> "Internet Services
Manager".
b. Right click "Default Web Site", select "Properties".
c. Select the "Home Directory" panel, click "Configuration".
d. Double-click the ".aspx" extension and you can see where
aspnet_isapi.dll locates, for example:
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_ isapi.dll

Note: v1.0.3705 is the version of .NET Framework.

I look forward to hearing from you.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
Jul 19 '05 #2
Well, I installed the .net framework 1.1 myself on the production
server. I downloaded it from Microsoft Downloads about 3 weeks ago.
Previously this server did not have the .net framework installed.

Also, I am sure my code would not even run on the production server if
it did not have the framework 1.1 installed. I would get a missing file
error if 1.0 was installed.

The code works correctly on my laptop but does not draw the * on the
calendar on the production server.

On the production server I get no errors and everything else functions
correctly.

Billy Jacobs
Software Engineer

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Michael Evanchik | last post by:
Im not getting any error messages but the event is not going off when i click the button it just posts back to the same page. I know this code has worked outside of Calanders with the same code. ...
1
by: eakmeemana | last post by:
does some one know a full calander control,full-screen event calendar application with a monthly view, weekly view, daily view etc. I need it to list events that occur on the different dates. The...
10
by: Billy Jacobs | last post by:
I am using the Day Render Event to place a red * on each day where there is at least one event. This works fine on my local machine. It however does not work on the production server. The...
6
by: hlubocky | last post by:
I thought I had a good grasp of the problem related to dynamically creating controls, but it appears that as my application grew in complexity, the problem has resurfaced. As I understand it, in...
0
by: Nadav | last post by:
Hi, Introduction: I have developed an interop project built of an unmanaged COM object and a ..NET WinForm application, the WinForm Application implement the user interface while the unmanaged...
1
by: Kevin R | last post by:
This is one of the weirdest problems I have ever run into. I have had to trim down a bunch of code to give a sample that is more easily readable by those who will view this. Here is the problem:...
0
by: si_owen | last post by:
Hi folks, I have a working calendar control on twp pages. one page to add events to a date, stored in database. and a second page to purely view the events in a gridview, which displays the...
7
by: Jassim Rahma | last post by:
is there any way to steel the outlook calander control and use in my windows for application?
0
by: foram | last post by:
Hi everyone, i have develop one application..it is AjaxbasedApplication and i am also using Ajax control toolkit and i have use ajaxToolkit:MaskedEditExtender control so on pressing one btn i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.