CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Retrieving text from controls

Print topic Send  topic

Author Message
Bubba

Posts: 33
Posted: 08/07/2007, 11:53 PM

I have a page that shows users their current membership status.

In the database I have a txt field for the status.

EG:
“U” = unfinancial
“F” = financial

I want to show a link to "U" members to ask them to resubscribe, however using the code below it does not retrieve the text that is being displayed.:

if MyDetails.Status.value = "U" then
MyDetails.Resublink.Visible= true
else
MyDetails.lblSubOk.value = "Your Membership is Valid"
end if

I have also tried:

Dim Status
Dim MemNo

MemNo = MyDetails.Member_No.Value

Status = CCDLookUp("Status","[tblMembers]","Member_No = " & Chr(34) & MemNo & Chr(34), DBConnection1)

if Status = "U" then…..

Again it does not work because it cannot retrieve the filed MyDetails.Member_No.Value from the page.

Any help would be appreciated.
View profile  Send private message
Oper


Posts: 1195
Posted: 08/08/2007, 6:51 AM

Bubba,

Try to use same code in before show Form (its a form right?)




http://www.GlobalDevelop.com
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
Bubba

Posts: 33
Posted: 08/08/2007, 3:36 PM

Oh sorry,

I forgot to mention that I am using this code with the "Before Show"...but thanks for the tip anyway...
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.