Problem in creating custom control from WebInput

11 replies. Last post: May 3, 2010 11:35 PM by Andi Santoso
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi,


I am creating my own control library(to be used in my web App) deriving from WebInput but i am facing lots of problem to do that.

I face lots of issue in javascript.

One of the thing is that, I want to create a NumericInput control to be used in App. Therefore i create my own "NumericInput" control deriving from WebInput.

Here is a sample code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ISNet.WebUI.WebControls;
using System.Drawing;
using System.Web.UI.WebControls;

namespace dummyproj
{
public class NumericInput : WebInput
{
CultureInfo.CultureName = "en-US";
DisplayFormat.IsEnabled = true;
DisplayFormat.Format = "n";
DisplayFormat.Type = FormatType.Number;
CalculatorEditor.IsEnabled = true;
//NumericInput = true;
base.OnLoad(e);
}
}


But when i use this control on my Web Application and try to type in any numeric keys i get some javascript error and doesn't allow me to type anything into textbox.

The only way i can type in is by using the Calculator editor of it.


Can you please provide the best way or any sample, which can show how to create your own control deriving from Intersoft components.


Thanks,

Huzefa

All times are GMT -5. The time now is 12:11 AM.
Previous Next