• 0

ASP.NET FreeTextBox Custom Button


Question

Anybody here work with FreeTextBox? I'm having a problem adding a custom button to a toolbar... here's what I've got...

<FTB:ToolbarButton Title="Insert Image From Gallery" FunctionName="FTB_InsertImageCustom" ButtonImage="insertimage" runat="server">
      	function FTB_InsertImageCustom(ftbName) {
          	var gallery = window.open('ftb.imagegallery.aspx?cif=/images/ftb/&rif=/images/ftb/&ftb this.ftb.id,'window','width=600,height=460,resizable=nogallery.focus();
      	}
</FTB:ToolbarButton>

What's wrong with that? It's throwing this error...

===================================

Server Error in '/' Application.

--------------------------------------------------------------------------------

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Literal content ('function FTB_InsertImageCustom(ftbName) { var gallery = window.open('ftb.imagegallery.aspx?cif=/images/ftb/&rif=/images/ftb/&ftb this.ftb.id,'window','width=600,height=460,resizable=nogallery.gallery.focus(); }') is not allowed within a 'FreeTextBoxControls.ToolbarButton'.

Source Error:

Line 66: <FTB:InsertImageFromGallery runat="server" />

Line 67: <FTB:ToolbarButton Title="Insert Image From Gallery" FunctionName="FTB_InsertImageCustom" ButtonImage="insertimage" runat="server">

Line 68: function FTB_InsertImageCustom(ftbName) {

Line 69: var gallery = window.open('ftb.imagegallery.aspx?cif=/images/ftb/&rif=/images/ftb/&ftb this.ftb.id,'window','width=600,height=460,resizable=no

Line 70: gallery.focus();

Source File: C:\Inetpub\!JoshAndBrandi\wwwroot\addpost.aspx Line: 68

--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032

===================================

Link to comment
https://www.neowin.net/forum/topic/304603-aspnet-freetextbox-custom-button/
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.