locked
how to make a custom server control??? RRS feed

  • Question

  • User-729420261 posted

    hi all...

    i want to make a custom control in which there is a textbox and user can give input in this textbox..i want to validate this textbox in such a way that it will take only strings, no special characters etc..if the user inputs some invalid input i.e special characters etc it will immediately prompts a message that input not valid...how can this be possible??any body knows the solution...thanks in advance

    Wednesday, March 28, 2012 8:30 AM

Answers

  • User3866881 posted

    dear pratik_galoria i want to make a custom server control?

    1)Open your VS and say create a normal asp.net web application or web site proj。

    2)Then right click the proj and choose "Add Items……"。In the pop-up dialog box,plz choose "Web User Control"。

    3)Double click that and drag and drop what controls you want from the toolbox into the UserControl panel in the design window。

    4)In the end,recompile your whole proj and directly drag and drop that control where you want to use……

    http://msdn.microsoft.com/en-au/library/system.web.ui.usercontrol(v=vs.80).aspx

    Reguards!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 29, 2012 9:22 PM

All replies