ASP.NET

Moderators: None (Apply to moderate this forum)
Number of threads: 1733
Number of posts: 3304

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
ASP and VS2005 Question Posted by MIT560 on 6 Aug 2007 at 3:33 PM
For Visual Studio 2005 in ASP:


Is it possible to create a Custom Binding expression on a label that will display the values of 2 fields in a record? What would the Expression be? I have tried the following with no luck:
Bind("firstName" & ' ' & "lastName")

Bind("firstName" + ' ' + "lastName")

As you can see I am only a beginner but this can also help you to understand more of what I am requesting. Thanks in advance for your help.
MIT560
Report
Re: ASP and VS2005 Question Posted by bradwang on 3 Dec 2007 at 8:35 PM
: For Visual Studio 2005 in ASP:

:
: Is it possible to create a Custom Binding expression on a label that
: will display the values of 2 fields in a record? What would the
: Expression be? I have tried the following with no luck:
:
: Bind("firstName" & ' ' & "lastName")
: 
: Bind("firstName" + ' ' + "lastName")
:
: As you can see I am only a beginner but this can also help you to
: understand more of what I am requesting. Thanks in advance for your
: help.
: MIT560
:


Hello, why not do it in the SQL level?

You can go with somethings like:
select firstName+', '+lastName as fullname from users where userid=1


Regards!

Brad Wang
.NET Freelancer from China



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.