Ha! Yep, that did it too! /specool.gif" style="vertical-align:middle" emoid=":specool:" border="0" alt="specool.gif" /> I knew it would be something easy that I was just overlooking.
Wonder what makes the + ""; work that I was using to "trick" the code?
I'm not sure. I'm very new to C# myself but am getting exposed to it more and more each day. Also, I've been told that concatenating using + is slower than using string.Format("Hello {0}!", username). It's not as much of an issue in single instances, but in something like a look it can make a difference, or so I've been told. /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
I have a (probably) novice question for C# .NET.
I have a drop down list with email addresses. These do not pull from a DB. That part works.
But I want to do the equivalent of this:
but I can't do that because I get:
Any thoughts? Thanks!
UPDATE
This works: mail.From = DropDownList_Rep.SelectedItem.Value + "";
But that seems to be "tricking" the code. Surely it's not the correct way of doing it?
Chris Cummings
Integrity Web Development
Chattanooga Web Service