Click here to Skip to main content
15,886,026 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWHAT IS SILVERLIGHT. Pin
Shubham Vijay14-Nov-11 21:10
Shubham Vijay14-Nov-11 21:10 
AnswerRe: WHAT IS SILVERLIGHT. PinPopular
thatraja14-Nov-11 21:37
professionalthatraja14-Nov-11 21:37 
QuestionProblem in playing videos on intranet portal Pin
uspatel13-Nov-11 22:34
professionaluspatel13-Nov-11 22:34 
AnswerRe: Problem in playing videos on intranet portal Pin
jkirkerx15-Nov-11 18:59
professionaljkirkerx15-Nov-11 18:59 
GeneralRe: Problem in playing videos on intranet portal Pin
uspatel15-Nov-11 19:31
professionaluspatel15-Nov-11 19:31 
QuestionURL and Routing problems - MVC model Pin
quanvt13-Nov-11 22:08
quanvt13-Nov-11 22:08 
AnswerRe: URL and Routing problems - MVC model Pin
Not Active13-Nov-11 22:43
mentorNot Active13-Nov-11 22:43 
QuestionError using Eval in asp.net Pin
Vimalsoft(Pty) Ltd13-Nov-11 20:50
professionalVimalsoft(Pty) Ltd13-Nov-11 20:50 
Good Day all

i have the following

HTML
<%# clsFlow.CleanBondNumber(Eval("ATB_NUMBER"))%>


and the Function CleanBondNumber is defined like this

VB
Public Shared Function CleanBondNumber(ByVal val As Object) As String


        Dim Final_bond_acc_no As String = String.Empty

        If (val.ToString().Contains("Offer")) Then

            'Get rid of the Offer string 
            Dim Finalstring As String

            Finalstring = val.ToString.Substring(6)

            If (Finalstring.Contains(" ")) Then

                'Get the Position of the Space
                Dim SpacePost As Integer
                SpacePost = Finalstring.IndexOf(" ")

                Final_bond_acc_no = Finalstring.Substring(0, SpacePost - 1)

                Return Final_bond_acc_no

            Else
                Return val.ToString()
            End If

        Else

            If (val.Contains(" ")) Then

                'Get the Position of the Space
                Dim SpacePost As Integer
                SpacePost = val.IndexOf(" ")

                Final_bond_acc_no = val.Substring(0, SpacePost - 1)
                Return Final_bond_acc_no
            Else
                Return val.ToString()
            End If
        End If

    End Function  


i stepped through the code and after it returns something i cant bind the Data, i get an Exception


<%# clsFlow.CleanBondNumber(Eval("ATB_NUMBER"))%> '=' expected.

Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com

AnswerRe: Error using Eval in asp.net Pin
Anuj Banka13-Nov-11 21:16
Anuj Banka13-Nov-11 21:16 
QuestionDeveloping Employee Portal - Database design question. Pin
Sunil Kokkiligadda13-Nov-11 17:34
Sunil Kokkiligadda13-Nov-11 17:34 
AnswerRe: Developing Employee Portal - Database design question. Pin
biop.codeproject14-Nov-11 15:04
biop.codeproject14-Nov-11 15:04 
GeneralRe: Developing Employee Portal - Database design question. Pin
Sunil Kokkiligadda15-Nov-11 6:11
Sunil Kokkiligadda15-Nov-11 6:11 
GeneralRe: Developing Employee Portal - Database design question. Pin
biop.codeproject15-Nov-11 12:56
biop.codeproject15-Nov-11 12:56 
QuestionHow to protect a page requested only by an external tool or administrator? Pin
TRAORE cheickna13-Nov-11 6:40
TRAORE cheickna13-Nov-11 6:40 
AnswerRe: How to protect a page requested only by an external tool or administrator? Pin
thatraja13-Nov-11 8:40
professionalthatraja13-Nov-11 8:40 
QuestionListView and DataPager in Update Panel Pin
cowcow1234513-Nov-11 6:13
cowcow1234513-Nov-11 6:13 
AnswerRe: ListView and DataPager in Update Panel Pin
thatraja13-Nov-11 8:49
professionalthatraja13-Nov-11 8:49 
GeneralRe: ListView and DataPager in Update Panel Pin
cowcow1234514-Nov-11 1:11
cowcow1234514-Nov-11 1:11 
QuestionHide my flash in iframes Pin
benams13-Nov-11 1:04
benams13-Nov-11 1:04 
AnswerRe: Hide my flash in iframes Pin
Not Active13-Nov-11 3:19
mentorNot Active13-Nov-11 3:19 
AnswerRe: Hide my flash in iframes Pin
Dennis E White14-Nov-11 6:41
professionalDennis E White14-Nov-11 6:41 
QuestionHow to implement an asynchronous code? Pin
TRAORE cheickna12-Nov-11 13:04
TRAORE cheickna12-Nov-11 13:04 
AnswerRe: How to implement an asynchronous code? Pin
Not Active12-Nov-11 16:21
mentorNot Active12-Nov-11 16:21 
Questioncontrols in asp.net Pin
Member 821751712-Nov-11 5:33
Member 821751712-Nov-11 5:33 
AnswerRe: controls in asp.net Pin
Dennis E White12-Nov-11 18:55
professionalDennis E White12-Nov-11 18:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.