Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsEvents Module 03.03.08 BetaEvents Module 03.03.08 Beta
Previous
 
Next
New Post
8/22/2007 10:11 AM
 

Is there anyway you could send me the compiled module? I am having the same problem.

 
New Post
8/27/2007 6:21 AM
 

DSlage wrote

I think the problem is with the cookie code.  I used the following code to overcome the "Object reference not set" problem.

 
Public Property SelectedCategory() As String
Get
If _SelectedCategory Is Nothing Then
Dim objCookie As HttpCookie = Request.Cookies("DNNEvents")
If objCookie Is Nothing Then
_SelectedCategory = ""
Else
Me.SelectedCategory = objCookie.Values("Cat" & ModuleId.ToString)
End If
End If
Return _SelectedCategory
End Get
Set(ByVal Value As String)
Try
_SelectedCategory = Value
Dim objCookie As HttpCookie = Request.Cookies("DNNEvents")
If objCookie Is Nothing Then objCookie = New HttpCookie("DNNEvents")
objCookie.Values("Cat" & ModuleId.ToString) = _SelectedCategory
Response.Cookies.Add(objCookie)
Catch ex As Exception
End Try
End Set
End Property

Hi there, is this the code to fix the list view category bug?

 
New Post
8/27/2007 7:45 AM
 

I had a "Object reference not set" error for both the Month view and the List view. Replacing the way the code accessed cookies corrected the problem for me. 

I also used simular code to change the way the Culture was saved/retreived in a cookie.

I hope that answers your question.

 
New Post
8/27/2007 7:52 AM
 

DSlage wrote

I had a "Object reference not set" error for both the Month view and the List view. Replacing the way the code accessed cookies corrected the problem for me. 

I also used simular code to change the way the Culture was saved/retreived in a cookie.

I hope that answers your question.

Great! Glad to hear that! Can I know which is the file that I should amend the code with your solution? Pardon me as I am still a newbie

 
New Post
8/29/2007 3:48 PM
 

How do I use this code? I tried using SQL Management Studio to excute the script and received the following errors:

Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'Public'.
Msg 102, Level 15, State 1, Line 3
Incorrect syntax near 'Nothing'.
Msg 102, Level 15, State 1, Line 5
Incorrect syntax near 'Nothing'.
Msg 1038, Level 15, State 4, Line 6
An object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as "" or [] are not allowed. Add a name or single space as the alias name.
Msg 178, Level 15, State 1, Line 11
A RETURN statement with a return value cannot be used in this context.
Msg 156, Level 15, State 1, Line 13
Incorrect syntax near the keyword 'SET'.
Msg 102, Level 15, State 1, Line 17
Incorrect syntax near 'Nothing'.
Msg 156, Level 15, State 1, Line 23
Incorrect syntax near the keyword 'SET'.

DSlage wrote

I think the problem is with the cookie code.  I used the following code to overcome the "Object reference not set" problem.

 
Public Property SelectedCategory() As String
Get
If _SelectedCategory Is Nothing Then
Dim objCookie As HttpCookie = Request.Cookies("DNNEvents")
If objCookie Is Nothing Then
_SelectedCategory = ""
Else
Me.SelectedCategory = objCookie.Values("Cat" & ModuleId.ToString)
End If
End If
Return _SelectedCategory
End Get
Set(ByVal Value As String)
Try
_SelectedCategory = Value
Dim objCookie As HttpCookie = Request.Cookies("DNNEvents")
If objCookie Is Nothing Then objCookie = New HttpCookie("DNNEvents")
objCookie.Values("Cat" & ModuleId.ToString) = _SelectedCategory
Response.Cookies.Add(objCookie)
Catch ex As Exception
End Try
End Set
End Property

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsEvents Module 03.03.08 BetaEvents Module 03.03.08 Beta


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out