This is the function that gets the data and returns it to the datalist in the event module. How do i crop the description string (called Description). Can i crop it after the 'myCommand.Fill(myDataSet)' whilst it is in the Dataset, if so how?
'*********************************************************************
'
' GetEvents Method
'
' The GetEvents method returns a DataSet containing all of the
' events for a specific portal module from the events
' database.
'
' NOTE: A DataSet is returned from this method to allow this method to support
' both desktop and mobile Web UI.
'
' Other relevant sources:
' + <a href="GetEvents.htm" style="color:green">GetEvents Stored Procedure</a>
'
'*********************************************************************
Public Function GetEvents(ByVal moduleId As Integer) As DataSet
' Create Instance of Connection and Command Object
Dim myConnection As New SqlConnection(ConfigurationSettings.AppSettings("connectionString"

)
Dim myCommand As New SqlDataAdapter("GetEvents", myConnection)
' Mark the Command as a SPROC
myCommand.SelectCommand.CommandType = CommandType.StoredProcedure
' Add Parameters to SPROC
Dim parameterModuleId As New SqlParameter("@ModuleId", SqlDbType.Int, 4)
parameterModuleId.Value = moduleId
myCommand.SelectCommand.Parameters.Add(parameterModuleId)
' Create and Fill the DataSet
Dim myDataSet As New DataSet()
myCommand.Fill(myDataSet)
' Return the DataSet
Return myDataSet
End Function
cheers,
si