code execution sequence

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
 
A

Alvin Bruney [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

session 1
String problem 2
Invoking an exe file 3
Is it posible to do checks within a asp:Repeater loop 6
File Exist 5
System.Data.DataRow error 1
validating date of birth 1
replace 2

Top