CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2008_express Tags:
Item Type: NewsGroup Date Entered: 3/12/2008 6:27:47 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 36 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Bosko1978
Asp.Net User
trouble adding c# code3/12/2008 6:27:47 PM

0/0

 I have a page that functions fine like this

 

<%
            YouTube youtube = new YouTube();
            youtube.DeveloperID = ConfigurationManager.AppSettings["DeveloperID"];
            Video[] videos = youtube.GetTaggedVideos("Beginner Guitar Lessons");
            for (int i = 0; i < videos.Length; i++) {
                %>
                <a href="GetVideo.aspx?VideoID=<%=videos[i].VideoID %>"><%=videos[i].Title %><br /><img src="<%=videos[i].ThumbnailUrl %>" alt="<%=videos[i].Title %>"/></a><br /><br />http://www.youtube.com/watch?v<%=videos[i].VideoID %><br />
                <iframe src="http://rcm.amazon.com/e/cm?t=blabla-20&o=1&p=9&l=st1&mode=books&search=yo%20mama&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="180" height="150" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe><br />
                <%
            }
        %>

 

 

now, I want to add an if statement in that so that the ad shows only after every third video like this

 

 <%
            YouTube youtube = new YouTube();
            youtube.DeveloperID = ConfigurationManager.AppSettings["DeveloperID"];
            Video[] videos = youtube.GetTaggedVideos("Beginner Guitar Lessons");
            for (int i = 0; i < videos.Length; i++) {
                %>
                <a href="GetVideo.aspx?VideoID=<%=videos[i].VideoID %>"><%=videos[i].Title %><br /><img src="<%=videos[i].ThumbnailUrl %>" alt="<%=videos[i].Title %>"/></a><br />copy/paste into RewindRewind<br />http://www.youtube.com/watch?v<%=videos[i].VideoID %><br />
                <%if(i=3){ %>
                <iframe src="http://rcm.amazon.com/e/cm?t=pilatesforpre-20&o=1&p=9&l=st1&mode=books&search=yo%20mama&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="180" height="150" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe><br />
                <%
                      }
            }
        %>

 

I get all kinds of errors that have nothing to do with that page in particular.  Any ideas? 

TonyDong
Asp.Net User
Re: trouble adding c# code3/12/2008 9:10:46 PM

0/0

if(i=3) should change it to

if(i ==3)

It need double  = in C# Big Smile


Don't forget to click "Mark as Answer" on the post(s) that helped you.
Bosko1978
Asp.Net User
Re: trouble adding c# code3/12/2008 9:17:38 PM

0/0

you're the man!  thanks alot.  the error system in web developer is a piece of *** though... why didn't it point me in that direction?  Instead it bitched about 9 other things that have nothing to do with that.

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
C Primer Plus Authors: Stephen Prata, Pages: 931, Published: 2001
Sams Teach Yourself C in 21 Days Authors: Bradley L. Jones, Peter G. Aitken, Pages: 960, Published: 2003
Practical C++ Programming Authors: Steve Oualline, Pages: 550, Published: 2002
Programming Python: Object-Oriented Scripting Authors: Mark Lutz, Pages: 1255, Published: 2001
Chilton's Auto Repair Manual, 1985: Domestic and Canadian Cars from 1978 Through 1985 Authors: Alan F. Turner, Chilton Book Company, Pages: 1338, Published: 1984
Google: The Missing Manual Authors: Sarah Milstein, Rael Dornfest, Pages: 299, Published: 2004
Java: The Complete Reference Authors: Herbert Schildt, Pages: 1024, Published: 2006
C++ how to Program: How to Program Authors: Paul J. Deitel, Pages: 1429, Published: 2008
The Software Catalog: Microcomputers, Winter, 1990 Authors: Menu International Software, Pages: 0, Published: 1990

Web:
Trouble Adding SAT C - High Def Forum - Your High Definition ... What is HD? Join Date: Nov 2004. Posts: 3. Question Trouble Adding SAT C ... Smilies are On. [IMG] code is On. HTML code is Off ...
Trouble Adding Quadruple Precision [Archive] - Numerical Recipes Forum [Archive] Trouble Adding Quadruple Precision C++ Programming with NR. ... Here is a sample program, so you can see how the code works: CODE: ...
.NET C++ Trouble adding to listbox - .NET Forum NET C++ Trouble adding to listbox. Get answers to your questions in our . ... My code is simple. this->ListBox1->Items->Add("Hello"); ...
MSDN SharePoint - Development and Programming Trouble adding a web ... Trouble adding a web part. ... c:\program files\common files\microsoft shared\ Wed Server ... c:\filename.cab: The web part deployment failed ...
Trouble adding connlimit support - LinuxQuestions.org Trouble adding connlimit support Linux - Kernel. ... net/ipv4/netfilter/ ipt_connlimit.c:312: warning: initialization from incompatible ...
Re: Trouble adding a new server to an AD domain: msg#00078 C:\Program Files\Support Tools>dcdiag. Domain Controller Diagnosis. Performing initial setup: .... "I'm having trouble adding a new server to an AD domain. ...
[R] Trouble with compiling or dyn.load-ing C code [R] Trouble with compiling or dyn.load-ing C code ... C function adding two vectors (5-26-05) */ #include EXPORT void addvectors(double *a, ...
Im having trouble adding a menuitem to the mainscreen menu ... Jul 21, 2008 ... Adding the other fields has been no problem. here is the code. ... C:\Program Files\Research In Motion\BlackBerry JDE ...
Trouble Using C++ Program - C++ Forums General C++ Programming ... post Trouble Using C++ Program ... First I'll need to see your code, then I'll also need to see what steps you ...
Trouble Adding Perl Modules in Tiger - Mac Forums Trouble Adding Perl Modules in Tiger Mac OS X. ... Thinking that perhaps this module uses some C code that the current version of GCC isn't ...

Videos:
Medieval 2: Rise of the papal states ep1 http://www.dateyourgame.com/blog/ I left my computer games aside for too long so here's a whole new 'chronicles' with the papal states. How do you p...
Doom 3 - Last Man Standing - Cooperative A video of Me and two friends playing around on LMS. If you have Doom 3 this is defenetly a mod worth downloading. Specially as you can play the game...
My First Wii Program I wrote this program in about 2 hours using the new wiiuse (wiiuse.net) C library and OpenGL. It uses the nintendo WiiMote's raw orientation data to ...
World of Warcraft Darkspear Realm this is a really sweet WoW realm to join go to dswow.org and register then go to your after that go to realmlist.wtf file in your world of warcraft f...
Nicholas Clark - When Perl Is Not Quite Fast Enough - Part2 Perl Programming Talks at YAPC::Braga Unfortunately part 1 of this talk is missing This is a tutorial on how make Perl run faster, without having ...
SSBB from the minds of B, C, and Bri Ok, I DO NOT support IkexMarth. It was just fun to poke at cause Marth looks like a girl...a lot. And if you haven't noticed by my other flashes, I h...
California Car Insurance Quotes www.SoBeWild.com California Car Insurance Quotes. State Farm allegedly violated the California insurance code by charging California drivers an illeg...
How to download vmtv compass. if you are having trouble downloading Vmtv patches or compasses watch this video -if You could not see the links here they are, replace the old vlb ...
How to get Rocketdock And Put StackDocklet and Put icons (To get Rocketdock) get it here http://rocketdock.com/download Download it And Install it. Now if you Want the Stackdocklet instead of clicking o...
Using ROSE to Mitigate Performance Trade-offs Google TechTalks April 03, 2006 Daniel Quinlan ROSE is a tool for building source-to-source transformation tools for the optimization of C and C++ ...




Search This Site:










failed installation

absolute positioning

create .net 2.0 projects with vwd 2008 express?

making multiple selections in design view in visual web developer 2008 express

sitemapdatasource & menu error

a comment: getting a master pages and control pages frames right is difficult

can i practice web parts and sharepoint develping with it ?

moving labels and text boxes anywhere i want to using vs2008express

configuration problem about visual web 2008

unable to view inserted images in design mode

vwd2008 issues

frustration in switching from asp classic to .net

using the split feature

vwd closes when trying to go to design mode

visual web devloper locks up on exit

will visual web developer rtm(orcas) support dlr languages..?

service pack 1

registering vwd 2008 express beta 2 "orcas"

microsoft web developer 2008 express edition

?? on relative label placement in vwd 2008 express

visual web developer 2008 data connection problem

question about downloading microsoft visual web developer express edition.

performance and memory issues with beta 2

visual web developer 2008 beta 2: "the following component failed to install"

creating web services with vwd

debug error

2007 microsoft office suite service pack 1 (sp1) ???

how do i configure visual studio 2008 that uses asp 3.5 to generate 2.0 asp project files

can multiple studios live together in harmony?

apply styles window

  Privacy | Contact Us
All Times Are GMT