User-880439067 posted
Iam working on youtube api v3 to display all the video.
With the new youtube api v3 I got the data in json form then with Deserialize it is converted to c# object.
Now my next challenge is to display the data of the C# object in html page.
VideoTitle video = new System.Web.Script.Serialization.JavaScriptSerializer().Deserialize<VideoTitle>(fileContents1);
I have the above line in the code and the video has all the youtube video details. Now I would like to get the video title which i can access string videotitle = video.items[1].snippet.resourceId.videoId; but if I try to print this in the html
with <% = videotitle %> it says The name 'videotitle' does not exist in the current context.
What is the issue here? Or how will i print video title and url in html?