List page problem

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
rene
User
Posts: 2

List page problem

Post by rene »

Hi,

We convert our project from VB to C#.

At the list page - page load we have a problem:

' Page Load event
Public Sub Page_Load()
'HttpContext.Current.Response.Write("Page Load")

'Werknemers

'Werknemersnaam combineren in 1 veld.
If PageID = "list" Then
Werknemers.Uk_voorletters.Visible = False ' Hide field
Werknemers.Uk_roepnaam.Visible = False ' Hide field
Werknemers.Uk_tussenvoegsels.Visible = False ' Hide field
End if

End Sub

When converting to c# we get the compilation error:

Line 2203: // Page Load event
Line 2204: public override void Page_Load() {
Line 2205:
Line 2206: //ew_Write("Page Load");

Now we see the word: OVERRIDE ?

Why ?

Regards,

Rene


motfs
User
Posts: 258

Post by motfs »

rene wrote:
' Page Load eventPublic Sub Page_Load()
If PageID = "list" Then

This is still VB code. If it is C#, the code will be:

Public void Page_Load()

Make sure you have commented VB code and regenerated ALL the files after converting to C#.


Post Reply