1 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
2 If Not Page.IsPostBack() Then
3
4
5 If Not Page.ClientScript.IsClientScriptBlockRegistered("FCKAjaxHack") Then
6 Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "FCKAjaxHack", String.Format("<script type=""text/javascript"" src='{0}'></script>", ResolveUrl("FCKHack.js")))
7 End If
8
9
10 btnSubmit.Attributes.Add("onClick", "if (eval('(typeof(MyFCKObject) != \'undefined\');')){MyFCKObject.UpdateEditorFormValue(); return true;}else{return true;}")
11
12 End If
13
14 End Sub
I place the editor in a updatepanel within a repeater within an other repeater. The error is on line 10. There must be something wrong with the btnSubmit button, but I'm sure I there is a button with the id "btnSubmit"
Here is the stack trace if it helps
[NullReferenceException: Object reference not set to an instance of an object.]
admin_clientPMP.Page_Load(Object sender, EventArgs e) in C:\Documents and Settings\Admin\My Documents\Visual Studio 2005\WebSites\AJAXEnabledWebSite1\admin\clientPMP.aspx.vb:25
System.Web.UI.Control.OnLoad(EventArgs e) +80
System.Web.UI.Control.LoadRecursive() +49
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3748
Please let me know if anyone need more information. Thanks for your time.