473,326 Members | 2,090 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,326 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 3497
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.