Forum Moderators: open

Message Too Old, No Replies

code behind file function not returning a value

function is set in code behind, but no value is returned

         

webby2005

10:58 am on Jun 16, 2005 (gmt 0)

10+ Year Member



I have a code behind file which has a function within. When i try to access this function with an aspx file, 1. how should i refer to it and 2. why is it not returning a value? In fact, does anyone no of any decent code behind examples i can follow?

Easy_Coder

4:57 pm on Jun 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Assuming that the function accepts and returns a string...

string myResults = myFunction(string parameter);

webby2005

11:55 am on Jun 17, 2005 (gmt 0)

10+ Year Member



To be honest i had one of those day ( i'm sure we've all had them ) where you spent the best part of the day trying to work out why something didn't work, only to come back after a rest and re-try an application for it to work perfectly. Don't you just hate that? I can't even think why it wasn't working. Thankyou for you response though. Much appreciated.