I have created a windows forms control in which I put a DSO Framer control

Last post 01-19-2007 6:44 AM by ViktorBergmanSwe. 1 replies.

Sort Posts:

  • I have created a windows forms control in which I put a DSO Framer control

    01-19-2007, 2:54 AM
    • Member
      point Member
    • Indian143
    • Member since 01-03-2007, 5:18 AM
    • Posts 4
    Sir, I have created a windows forms control in which I put a DSO Framer control. I have compiled it and registered in GAC. Even its doing fine when I used it in another windows application. But When I try to put it in a web page its not showing anything as it is the same thing showing the required word doc in windows application. Please tell me what are the steps do I need to take to make it fine. Thank you. Regards,
  • Re: I have created a windows forms control in which I put a DSO Framer control

    01-19-2007, 6:44 AM
    Answer
    • Member
      508 point Member
    • ViktorBergmanSwe
    • Member since 01-16-2007, 4:29 AM
    • Gothenburg, Sweden
    • Posts 146

    Windows Forms controls are not the same thing as Web User Controls since they do not inherit the same base class. So what you need to do is to create a new control and inherit that from System.Web.UI.UserControl, "translate" the content of the control (like placing textboxes and so and so forth), copy your events and logic to support the new control. You can still use much of the same classes in both forms, the only real difference is the UI controls.

    I good advice is to read http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/userctrl/default.aspx
     

    "What good is money if it can't inspire terror in your fellow man?"
Page 1 of 1 (2 items)