protected void getTitle(Guid storyID)
 {
     //make a new story object
     Story stry = new Story();
     //get the right story by the storyID passed in
     stry = stry.GetById(storyID);
     //set the text property of lblStoryTitle to the title property of stry
     lblStoryTitle.Text = stry.Title;
 }
Exemple #2
0
 protected void getTitle(Guid storyID)
 {
     //make a new story object
     Story story = new Story();
     //find the right story object by storyID
     story = story.GetById(storyID);
     //set the text of lblStoryTitle to the value of story.Title
     lblStoryTitle.Text = story.Title;
 }