type 'System.StackOverflowException' error while writing class file which i am inheriting
-
Public Class languagesetting Inherits System.Web.UI.Page Private rm As ResourceManager Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load MyBase.OnLoad(e)------------>An unhandled exception of type 'System.StackOverflowException' occurred in System.Web.dll Dim ci As CultureInfo ci = Session("lang") rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) Thread.CurrentThread.CurrentCulture = ci LoadStrings(ci) End Sub
-
Public Class languagesetting Inherits System.Web.UI.Page Private rm As ResourceManager Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load MyBase.OnLoad(e)------------>An unhandled exception of type 'System.StackOverflowException' occurred in System.Web.dll Dim ci As CultureInfo ci = Session("lang") rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources")) Thread.CurrentThread.CurrentCulture = ci LoadStrings(ci) End Sub
anbusenthil wrote:
Handles Me.Load MyBase.OnLoad(e)
Don't you think, it is obvious. You are calling the Onload event from Load method. It is a recursive loop. :omg:
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
anbusenthil wrote:
Handles Me.Load MyBase.OnLoad(e)
Don't you think, it is obvious. You are calling the Onload event from Load method. It is a recursive loop. :omg:
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
still its not working