Author: juicejug | Posted on: 6/8/2010 10:29:02 AM | Views : 253

I have a table that contains the location for a .txt file for each item.  Within that text file is formatted text specific to the row in the table.  I have these text files in a folder at location ../tipstext/*.txt on my web host.  The code to find the location is:
protected void lbItem_SelectedIndexChanged(object sender, EventArgs e) { string itemID = lbItem.SelectedItem.Value; ItemDetails item; item = CatalogAccess.GetYouTubeURLAndText(itemID); string title = item.tipTitle; string youTubeURL = item.youTubeLoc; string textLoc = item.instructionsLoc; if (youTubeURL != null) { lbItem.Enabled = true; youTube.Enabled = true; youTube.Text = youTubeURL; } else { lbItem.Enabled = false; youTube.Enabled = false; } if (textLoc != null) ...

Go to the complete details ...