<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Killersites.com Web Design Forums]]></title>
		<link>http://www.killersites.com/forums/</link>
		<description><![CDATA[The most recent topics at Killersites.com Web Design Forums.]]></description>
		<lastBuildDate>Thu, 09 Jul 2009 05:18:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[asp.net homework help]]></title>
			<link>http://www.killersites.com/forums/topic/1132/aspnet-homework-help/new/posts/</link>
			<description><![CDATA[I'm working on a homework assignment for one of my classes and having a problem getting my drop down list working they way I need it to.

So what I need to do is choose one thing on a list and when the user clicks submit, a panel will appear with the corresponding text and images.  

I made it work with radio buttons, but when I went back to check the assignment requirements, the instructor was a drop down list :(.

This is the code for the radio button:

[code]
if (rdoCapricorn.Checked)
 {
            pnlRead.Visible = true;
            pnlHoroscopes.Visible = true;

            lblSign.Text = "Capricorn";
            imgHoroscope.ImageUrl = "~/signs/capricorn.png";
            lblHoroscope.Text = "blah blah blah";
}
[/code]

So the problem I am having is doing the same thing with a drop down list.

I tried using the following lines for the if statement: 

[code]if (ddlZodiac.SelectedItem = "Capricorn")[/code]

[code]if (ddlZodiac.SelectedIndex = 0)[/code]

[code]if (ddlZodiac.DataValueField = "Capricorn")[/code]

[code]if (ddlZodiac.DataTextFormatString = "Capricorn")[/code]

and I getting an error "cannot implicitly convert type string (or int) to bool".   I even tried the .ToString at the end of SelectedItem but I get another error which says, "cannot assign to ToString because it is a 'method group'".  I don't fully understand the errors which I think is why I'm having a problem.

There has to be simple solution to this that I am completely missing.  I don't think our instructor covered.  I'm not sure if this makes a difference, but the drop down list has an SqlDataSource called "theZodiac".


below is the code to display the drop down list and code for the database:

[code]

            <asp:DropDownList ID="ddlZodiac" runat="server" 
                DataSourceID="theZodiac" 
                DataTextField="Sign" DataValueField="Sign">
            </asp:DropDownList>


            <asp:SqlDataSource ID="theZodiac" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                SelectCommand="SELECT [Sign] FROM [zodiacSign]">
            </asp:SqlDataSource>

[/code]

I'm sorry if this seems like a lot.  I'm very new to ASP.Net, so I want to know how to make it work and why the methods I was trying above did not so I know for future reference.

Thanks in advance to anyone who replies! ;)]]></description>
			<author><![CDATA[dummy@example.com (Danielmartin222)]]></author>
			<pubDate>Thu, 09 Jul 2009 05:18:36 +0000</pubDate>
			<guid>http://www.killersites.com/forums/topic/1132/aspnet-homework-help/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Silverlight or ASPX ?]]></title>
			<link>http://www.killersites.com/forums/topic/1647/silverlight-or-aspx/new/posts/</link>
			<description><![CDATA[I am using Silverlight since last 25 days and it changed the way of coding. I am embedding everything in xap which makes me little confuse.

My Question:

1.       To what extend we need to write the code in aspx

2.       If I am developing and ASP.NET application with Silverlight what proportion of code normally I need to put in XAML considering all pages are fully powered by Silverlight pages.

__________________________]]></description>
			<author><![CDATA[dummy@example.com (LSW)]]></author>
			<pubDate>Thu, 11 Jun 2009 15:05:56 +0000</pubDate>
			<guid>http://www.killersites.com/forums/topic/1647/silverlight-or-aspx/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[how to make dynamically binary tree which is compatiable to browser]]></title>
			<link>http://www.killersites.com/forums/topic/1114/how-to-make-dynamically-binary-tree-which-is-compatiable-to-browser/new/posts/</link>
			<description><![CDATA[provide code]]></description>
			<author><![CDATA[dummy@example.com (nishithkant@esoft)]]></author>
			<pubDate>Thu, 02 Apr 2009 07:10:40 +0000</pubDate>
			<guid>http://www.killersites.com/forums/topic/1114/how-to-make-dynamically-binary-tree-which-is-compatiable-to-browser/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Which programming language should I learn]]></title>
			<link>http://www.killersites.com/forums/topic/997/which-programming-language-should-i-learn/new/posts/</link>
			<description><![CDATA[I 'm getting ready to enroll into a web programming class. Which would be more practical, ASP.NET or PHP/MySQL ?

I read on one of the older posts saying that ASP is outdated and expensive to host. I also read that PHP is really easy to learn, and that I would need my host provider to support PHP site.

Thanks for your help]]></description>
			<author><![CDATA[dummy@example.com (falkencreative)]]></author>
			<pubDate>Fri, 20 Mar 2009 18:50:48 +0000</pubDate>
			<guid>http://www.killersites.com/forums/topic/997/which-programming-language-should-i-learn/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[aspx and mp3 player]]></title>
			<link>http://www.killersites.com/forums/topic/982/aspx-and-mp3-player/new/posts/</link>
			<description><![CDATA[Being new to web design and not the web master, just curious as to why this happens on this site....  www  lacroixchurch  org/Messages/The%20Wound%20and%20the%20Lie.aspx    I'm assuming it was written in asp, but not sure, so hope this question is in the correct area.

When play is selected, the audio starts, but then quits when the above image switches while using (safari, firefox, opera), but works fine in IE - at least I'm told, I don't have IE.   Why would this work fine in IE and not other browsers, and should it be an easy fix for the programmer?

Thanks,  Mark]]></description>
			<author><![CDATA[dummy@example.com (falkencreative)]]></author>
			<pubDate>Fri, 20 Mar 2009 03:27:18 +0000</pubDate>
			<guid>http://www.killersites.com/forums/topic/982/aspx-and-mp3-player/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[How can I make decreasing options in form - radio buttons]]></title>
			<link>http://www.killersites.com/forums/topic/266/how-can-i-make-decreasing-options-in-form-radio-buttons/new/posts/</link>
			<description><![CDATA[I have a form with radio buttons… I want to set how many times the options can be picked. Example:
<form name="form1" method="post" action="cart.html">

      <label>
      <input type="radio" name="info" value="11/23/2008+2pm-3pm" >
    2pm-3pm</label>
      <br>
      <label>
      <input type="radio" name="info" value="11/23/2008+3pm-4pm">
    3pm-4pm</label>
      <br>
  
  <p>      <input type="submit" name="method" value="choose"/>
  </p>
</form>

For the 2pm-3pm time I want users to only be able to pick the 2pm-3pm 4 times, for the '3pm-4pm' time- only 5 times….When the 2pm-3pm has been picked 4 times that option disappears. I want to be able to entre how many orders per radio button...
And as the orders fill up the remaining orders decrease and option eventually disappears form frontend...
How is this possible to do? Do I need to put a Id on each radio button?]]></description>
			<author><![CDATA[dummy@example.com (mslfire)]]></author>
			<pubDate>Sat, 03 Jan 2009 19:51:23 +0000</pubDate>
			<guid>http://www.killersites.com/forums/topic/266/how-can-i-make-decreasing-options-in-form-radio-buttons/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Need advice.....!]]></title>
			<link>http://www.killersites.com/forums/topic/202/need-advice/new/posts/</link>
			<description><![CDATA[Can anyone tell me what is the best way to learn asp.net easy and fast.i am waiting for your posts.thanks in advance.]]></description>
			<author><![CDATA[dummy@example.com (daisy)]]></author>
			<pubDate>Wed, 31 Dec 2008 04:52:27 +0000</pubDate>
			<guid>http://www.killersites.com/forums/topic/202/need-advice/new/posts/</guid>
		</item>
	</channel>
</rss>
