Hi Telerik,
I am having problem after i load a user control to radsplitter. i am not able to fired the event that i created in the ascx. is there anyway i can invoke the event ?
In aspx
in ascx.
P.S. i load the ascx dynamically.
Regards,
KEA
I am having problem after i load a user control to radsplitter. i am not able to fired the event that i created in the ascx. is there anyway i can invoke the event ?
In aspx
Imports
Telerik.Web.UI
Partial
Class
Admin
Inherits
System.Web.UI.Page
Protected
Sub
Page_Load(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
Me
.Load
If
Not
IsPostBack
Then
RadPane11.Controls.Add(LoadControl(
"~/Admin/Insert Landmark.ascx"
))
End
If
End
Sub
Protected
Sub
RadPanelBar1_ItemClick(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.RadPanelBarEventArgs)
Handles
RadPanelBar1.ItemClick
Dim
ItemClicked
As
RadPanelItem = e.Item
RadPane11.Controls.Add(LoadControl(
"~/Admin/"
& ItemClicked.Text &
".ascx"
))
RadPane()
End
Sub
End
Class
in ascx.
Imports
Telerik.Web.UI
Partial
Class
Admin_InsertLandmark
Inherits
System.Web.UI.UserControl
Protected
Sub
Page_Load(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
Me
.Load
End
Sub
Protected
Sub
Button1_Click(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
Button1.Click
If
RadUpload1.UploadedFiles.Count > 0
Then
For
Each
f
As
UploadedFile
In
RadUpload1.UploadedFiles
Dim
landmarkname
As
String
= TextBox1.Text
Dim
landmarkaddress
As
String
= TextBox2.Text
Dim
landmarkphotourl
As
String
= f.FileName
f.SaveAs(
"D:\LandMarkImage\"
+ f.FileName)
Next
End
If
End
Sub
End
Class
P.S. i load the ascx dynamically.
Regards,
KEA