How do i use overload in C#
I have a sample codes that goes like this
Namespace Test
Partial Class TestAccess
Inherits BaseForm
Dim db As New database
Dim share As New ShareMethod
Protected Overloads Overrides Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
MyBase.Page_Load(sender, e)
I tried using the converter, but keep getting error.
And my overload doesnt have any function, so do i still use .....+....
****UPDATED
Here is my codes for the program which i want to inherit
namespace CRRBaseForm
{
public partial class TAView : BaseForm
{
protected override void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack == false)
{
binddropdownlists();
}
}
currently nothing happens. but when i did this; it tells me that i need to overload:
namespace CRRBaseForm
{
public partial class TAView : BaseForm
{
protected override void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack == false)
{
Page_Load(); //call from BaseForm
binddropdownlists();
}
}
my baseform is as follow:
namespace CRRBaseForm
{
public partial class BaseForm : System.Web.UI.Page
{
protected virtual void Page_Load(object sender, EventArgs e)
{
//Check if the Session Login id null
if (Session["UserID"] == null)
{...
...
...