code execution sequence

  • Thread starter Thread starter Eugene Anthony
  • Start date Start date
E

Eugene Anthony

For the code bellow despite
Path.GetExtension(Eval("VideoPath").ToString()) == ".flv" the code does
not return "m" instead it returns "k". How do I solve the problem?

if (Path.GetExtension(Eval("VideoPath").ToString()) == ".flv")
{
return "m";
}
else
{
return "k"
}

Eugene Anthony
 
Not sure what your question is, you only return 'm' if you find .flv.
Otherwise you return 'k'. Make sure the evaluated expression is what you
expect it to be.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
 
Back
Top