473,789 Members | 2,679 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(ByVa l sender As
System.Object, ByVal e As
System.Web.UI.W ebControls.DayR enderEventArgs) Handles
cldActivityDate .DayRender
Dim dr() As DataRow
Dim r As DataRow
Try
dr = CType(Session(" dsLAStateData") ,
dsLAStateData). Iteneraries.Sel ect("EmployeeID =" & CType
(Session("UserI nfo"), UserInfo).ID)
For Each r In dr
If r.Item("Activit y Date") = e.Day.Date
Then

e.Cell.Controls .AddAt(1, New
LiteralControl( "<font color=red>*</font>"))
'e.Cell.Control s.AddAt
(e.Cell.Control s.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 3528
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.dl l. I'd like to perform the following steps to check
aspnet_isapi.dl l:

a. Go to "Control Panel" -> "Administra tive 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.dl l locates, for example:
C:\WINNT\Micros oft.NET\Framewo rk\v1.0.3705\as pnet_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
3863
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. Anyone have any ideas? While rdz.Read() lb(rdz("id")) = New Button lb(rdz("id")).ID = "lb" & rdz("id") lb(rdz("id")).Text = rdz("lloyds_num") AddHandler lb(rdz("id")).Click, AddressOf dayclickz
1
2024
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 user brings up the monthly view calendar, clicks on an day on a certain day, and it brings up the schedules for that day. it is kind of like a outlook calandar page. does such a control exsists with asp.net? thanks
10
470
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 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
6
2864
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 order for a dynamically created control to persist its state, it needs to be created and loaded into the page control hierarchy before the viewstate is loaded. The proposed solution, and that which I have been using, has been to create all of...
0
1037
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 COM implements a collection of mathematical calculations and algorithms. The COM object, when requested, should be able to render a graph representing it’s calculations to a window, to achieve that it expose a
1
4116
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: I dynamically add an htmlcheckbox to a webform in the pages render and set the checked value to true. When the page loads, if I remove the check from the checkbox and then submit it, in the submit event the checkbox' checked value is still...
0
891
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 events for the day selected from the calendar. However i am looking to allow multiple date selection, from what i have seen only single day or whole week or sindle, whole week and whole month are available multiple selectors.
7
1871
by: Jassim Rahma | last post by:
is there any way to steel the outlook calander control and use in my windows for application?
0
923
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 want to open calander and then i can select date and tht date shd display on textbox...everything wirks fine...but my problem is that below jaxToolkit:MaskedEditExtender one dropdownlist is thr so when i press on that button at tht time i m getting...
0
9666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10139
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3700
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.