ado.net with asp.net
I'm trying to use ado.net with asp.net because binding seems to be very limited. Here is my problem, I want to break apart the dates coming out with DatePart like this:
<% Dim curmonth
curmonth = monthname(datepart("m", #Container.DataItem("Event_date"))) & " " & DatePart("yyyy", #Container.DataItem("Event_date")) %>
With Classic ASP it makes a date like this 1/5/03 look like this:
January 2003.
I'm getting an Expression expected on the curmonth = monthname ... line.
With classic ASP I used rSet("event_date"). What is the equivalent in ASP.NET?
|