Click here to Skip to main content
15,886,258 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Embded media player Pin
L. Madhavan16-Dec-08 21:19
L. Madhavan16-Dec-08 21:19 
QuestionHow to do a movenext into your data??? Pin
meki_211816-Dec-08 15:06
meki_211816-Dec-08 15:06 
AnswerRe: How to do a movenext into your data??? Pin
SeMartens16-Dec-08 23:19
SeMartens16-Dec-08 23:19 
AnswerPosted all over the place, been answered multiple times. Pin
Ashfield16-Dec-08 23:58
Ashfield16-Dec-08 23:58 
Questionobject not displaying on web page Pin
Tabb Smith16-Dec-08 14:59
Tabb Smith16-Dec-08 14:59 
Question.net web service in delphi Pin
Milin Thosani16-Dec-08 9:38
Milin Thosani16-Dec-08 9:38 
AnswerRe: .net web service in delphi Pin
SeMartens16-Dec-08 23:35
SeMartens16-Dec-08 23:35 
QuestionSome errors on test site - help Pin
bmx463716-Dec-08 8:21
bmx463716-Dec-08 8:21 
Hey I am receiving 3 errors in this code, I am using 2008 web developer with C#, any help would be greatly appreciated. I want to see other peoples' opinions before I display my own for an unbiased opinion. Thanks

Errors: (...this.txtSearch.Text; )
(...GetIDSimple(entry...)
(...this.lblresults.text)

_____________________________________________________


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Google.GData.Client;
using Google.GData.Extensions;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string url = "http://gdata.youtube.com/feeds/videos?q=" + this.txtSearch.Text;
AtomFeed myFeed = GetFeed(url, 1, 15);
DisplayFeed(myFeed);
}

private static AtomFeed GetFeed(string url, int start, int number)
{
System.Diagnostics.Trace.Write("Conectando youtube at " + url);
FeedQuery query = new FeedQuery("");
Service service = new Service("youtube", "exampleCo");
query.Uri = new Uri(url);
query.StartIndex = start;
query.NumberToRetrieve = number;

AtomFeed myFeed = service.Query(query);
return myFeed;
}


private void DisplayFeed(AtomFeed myFeed)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
foreach (AtomEntry entry in myFeed.Entries)
{
#region render each
sb.Append("<br /><b>Title:</b> ");
sb.Append(entry.Title.Text);
sb.Append("<br /><b>Categories:</b> ");
foreach (AtomCategory cat in entry.Categories)
{
sb.Append(cat.Term);
sb.Append(",");
}
sb.Append(RenderVideoEmbedded(getIDSimple(entry.Id.AbsoluteUri)));
sb.Append("<br /><b>Published on:</b> ");
sb.Append(entry.Published);
#endregion
}
this.lblResults.Text = sb.ToString();
}



private string RenderVideoEmbedded(string idSimple)
{
return string.Format("<div id=\"video{0}\"><object width=\"425\" height=\"355\"><param name=\"movie\" value=\"http://www.youtube.com/v/{0}&rel=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/{0}&rel=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"355\"></embed></object></div>", idSimple);
}

}
AnswerRe: Some errors on test site - help Pin
SeMartens16-Dec-08 23:39
SeMartens16-Dec-08 23:39 
GeneralRe: Some errors on test site - help Pin
bmx463717-Dec-08 8:04
bmx463717-Dec-08 8:04 
AnswerRe: Some errors on test site - help Pin
Ashfield17-Dec-08 0:01
Ashfield17-Dec-08 0:01 
GeneralRe: Some errors on test site - help Pin
bmx463717-Dec-08 8:05
bmx463717-Dec-08 8:05 
Questionrewrite url from xyz.com/page.htm to xyz.com/page.html Pin
random416-Dec-08 1:25
random416-Dec-08 1:25 
AnswerRe: rewrite url from xyz.com/page.htm to xyz.com/page.html Pin
bmx463717-Dec-08 15:10
bmx463717-Dec-08 15:10 
GeneralRe: rewrite url from xyz.com/page.htm to xyz.com/page.html Pin
random417-Dec-08 18:58
random417-Dec-08 18:58 
GeneralRe: rewrite url from xyz.com/page.htm to xyz.com/page.html Pin
bmx463721-Dec-08 14:44
bmx463721-Dec-08 14:44 
GeneralRe: rewrite url from xyz.com/page.htm to xyz.com/page.html Pin
random421-Dec-08 18:46
random421-Dec-08 18:46 
QuestionConnecting with mysql database Pin
Hemant Thaker15-Dec-08 22:17
Hemant Thaker15-Dec-08 22:17 
AnswerRe: Connecting with mysql database Pin
SeMartens15-Dec-08 23:10
SeMartens15-Dec-08 23:10 
QuestionRe: Connecting with mysql database Pin
Hemant Thaker16-Dec-08 0:05
Hemant Thaker16-Dec-08 0:05 
AnswerRe: Connecting with mysql database Pin
Expert Coming16-Dec-08 17:15
Expert Coming16-Dec-08 17:15 
QuestionHijri calendar Pin
faizurrahman15-Dec-08 18:08
faizurrahman15-Dec-08 18:08 
AnswerRe: Hijri calendar Pin
Abhijit Jana16-Dec-08 3:09
professionalAbhijit Jana16-Dec-08 3:09 
QuestionPrinter is not Detecting Pin
Exelioindia15-Dec-08 1:02
Exelioindia15-Dec-08 1:02 
AnswerRe: Printer is not Detecting Pin
Expert Coming16-Dec-08 17:19
Expert Coming16-Dec-08 17:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.