i am getting problem in converting a piece of code to VB.NET plz give any suggestion if possible
Code:
public partial class ViewCustomers : Page,IViewCustomerView
{
private ViewCustomerPresenter presenter;
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
presenter = new ViewCustomerPresenter(this);
this.customerDropDownList.SelectedIndexChanged += delegate
{
presenter.DisplayCustomerDetails();
};
}
}
give me help!!!!!!!!!1
Hi of the members facined this problem of converting try the below code hope this will be helpful to you:
Private presenter As New ViewCustomerPresenter(Me)
Protected Overrides Sub OnInit(ByVal e As System.EventArgs)
presenter = New ViewCustomerPresenter(Me)
AddHandler DropDownList1.SelectedIndexChanged, AddressOf DDLSelectedIndexChangedHandler
End Sub
Protected Sub DDLSelectedIndexChangedHandler(ByVal sender As Object, ByVal e As System.EventArgs)
presenter.DisplayCustomerDetails()
End Sub
Leave a Reply
You must be logged in to post a comment.