imports system.data
Private schedule As New DataView()
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
schedule = CType(srcSchedule.Select(DataSourceSelectArguments.Empty), DataView)
schedule.Sort = "entryDate"
End Sub
///////////////////////
whenever i run the above code an error message comes up with the following message:
Object reference not set to an instance of an object.
and it highlights the bold message mention in the code.
I wanted this code to highlight the dates in the calendar that have events on them.
Can you please help. thank you very much in advance.
Hi
srcSchedule might be null when program run into the bold line.
You can debug that line to check out.
Hope it helps.
No comments:
Post a Comment