473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

code execution sequence

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

*** Sent via Developersdex http://www.developersdex.com ***
Apr 22 '07 #1
2 1292
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
"Eugene Anthony" <so***********@yahoo.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
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

*** Sent via Developersdex http://www.developersdex.com ***

Apr 22 '07 #2
You must use debugging ;)

daniel #
"Eugene Anthony" <so***********@yahoo.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
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

*** Sent via Developersdex http://www.developersdex.com ***

Apr 22 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: ???? | last post by:
this is an excerpt from C++ Primer 3rd edition by Lippman, Lajoie. How might we read an unknown number of input values? At the end of Section 1.2, we did just that. The code sequence string...
4
by: Debaser | last post by:
I was surprised to learn in class today that given a pointer p, the statement: *p++; dereferences first and then increments the pointer. So say p points to an array location array. During...
2
by: opt_inf_env | last post by:
Hello, On my server users have access to MySQL database (through PHP). What I would like to avoid is parallel execution of commands. I mean, if one user run some sequence of command the sequence...
23
by: roman | last post by:
Hi, I would like to have two actions for one event. But I want the second action to trigger when the first one action completes. Is it possible to do this in javascript? I'm using the onclick...
2
by: Water Cooler v2 | last post by:
http://www.w3schools.com/js/js_whereto.asp This link is to a JavaScript tutorial on w3schools. The page says that a script put in the HEAD is executed only when called, whereas one put in the...
42
by: Sabiyur | last post by:
Hi all, one of the recent post gives the macro to do swap #define SWAP(m, n) (tmp = (m), (m) = (n), (n) = tmp) This macro will work, if the execution is from left to right. That is step 1)...
1
by: Sabiyur | last post by:
Hi All, I don't know whether this is the right forum to post this question. If not, Please forgive me. I want to write my own tool which can trace the code execution (print the sequence of...
1
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
What are the default execution sequence of the following vb in running a vb.net application? I want to know when MySettings are populated with values when I run the application. ...
19
by: Charles Sullivan | last post by:
A C program with code typified by the following pared-down example has been running after compilation on numerous compilers for several years. However with a fairly recent GCC compiler it results...
5
by: =?ISO-8859-1?Q?Marcel_M=FCller?= | last post by:
Hi, I have a question about the execution sequence of the postfix increment operator with respect to a function call. void foo(int type, int*& data); int* sequence;
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.