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

 How To Display Logged in Name on Login page

Print topic Send  topic

Author Message
joseph2k

Posts: 72
Posted: 11/19/2006, 9:24 AM

I am using the help file section "Working with Panels" to do this piece of code but its not working... Any ideas?

I was careful to add a label UserLogin that is not in form.

I have a Panel called panel1 looks like
<!-- BEGIN Panel Panel1 -->
<table>
<tr>
<td>Welcome {UserLogin}</td>
</tr>
</table>
<!-- END Panel Panel1 -->

I select the Panel and add custom code to the "Before Show" event of :

Function Panel1_BeforeShow(Sender)
If CCGetUserID() Then
UserLogin.Value = CCGetUserLogin()
Else
Panel1.Visible = false
End if
End Function

I get build error of

Error:C:\DOCUME~1\joseph\LOCALS~1\Temp\~EMPLO~1\Login.aspx.vb(62) : error BC30289: Statement cannot appear within a method body. End of method assumed.

Function Panel1_BeforeShow(Sender)
~~~~~~~~
Error:C:\DOCUME~1\joseph\LOCALS~1\Temp\~EMPLO~1\Login.aspx.vb(63) : error BC30451: Name 'CCGetUserID' is not declared.

If CCGetUserID() Then
~~~~~~~~~~~
Error:C:\DOCUME~1\joseph\LOCALS~1\Temp\~EMPLO~1\Login.aspx.vb(64) : error BC30451: Name 'UserLogin' is not declared.

UserLogin.Value = CCGetUserLogin()
~~~~~~~~~
Error:C:\DOCUME~1\joseph\LOCALS~1\Temp\~EMPLO~1\Login.aspx.vb(64) : error BC30451: Name 'CCGetUserLogin' is not declared.

UserLogin.Value = CCGetUserLogin()
~~~~~~~~~~~~~~
Error:C:\DOCUME~1\joseph\LOCALS~1\Temp\~EMPLO~1\Login.aspx.vb(74) : error BC30429: 'End Sub' must be preceded by a matching 'Sub'.

End Sub 'Page_Load Event tail @1-E31F8E2A
~~~~~~~
View profile  Send private message
peterr


Posts: 5971
Posted: 11/19/2006, 11:05 AM

The code that you used is ASP code, but your errors are .NET errors indicating that you used .NET instead of ASP. You will need to apply code in the same programming language that you selected. If you create .NET applications then you would need to use .NET code.
(BTW, this is ASP forum, while your application is a .NET app)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
joseph2k

Posts: 72
Posted: 11/19/2006, 2:14 PM

yes... you are right... I guess what tricked me up is that page 66 of 150 of turtorial has sections ASP and VBSCript, ASP.NET(C#), JSP, PHP, ColdFusion,Perl spelled out but actual section missing is ASP.NET(C#) from the manual...
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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