However I do not know how to convert a string object back to a custom object.Here is the original code of the application:
#Region "Protected Sub btnSubmitModifiedLetter_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmitModifiedLetter.Click" Protected Sub btnSubmitModifiedLetter_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmitModifiedLetter.Click Dim _al As Letters = New Letters() Dim _infinteCampusText As String Dim _Letter As Letter = New Letter() Dim _startDate As DateTime = Now() Dim _term As Integer = 0 _Letter.SchoolYear = _schoolyear _Letter.Term = _term _Letter.Milestone = ddlMilestone.SelectedValue _Letter.SchoolNumber = Right("000" & ddlSchools.SelectedValue,3) _Letter.Printed = "Y" _Letter.Letter = reLetterEditor.Content _Letter.StudentLink = Right("0000000" & txtStuLink.Text, 7) _Letter.Language = txtLanguage.Text _infinteCampusText = _al.BuildText(_Letter) _al.InsertData(_Letter, _infinteText) btnProcessSelections.Visible = False gvLetters.DataSourceID = String.Empty gvLetters.DataBind() gvLetters.Visible = False Response.Redirect("letter.aspx?schoolyear=" + _Letter.SchoolYear.ToString() + "&schoolnum=" + _Letter.SchoolNumber.ToString() + "&term=" + _Letter.Term.ToString() + "&milestonecode=" + _Letter.Milestone.ToString() + "&startdate=" + _startDate.ToString() + "&enddate=" + DateAdd(DateInterval.Day, 1, Today()).ToString() + "&language=ALL&studentlink=ALL") End Sub #End Region
Thus can you show me the code to convert a string object to a custom object and/or show me code on how to accomplish my goal?