Present class in design mode

  • Thread starter Thread starter michael.yakubov
  • Start date Start date
M

michael.yakubov

Hi
I've been trying to find a way to attach designer to class(*.cs) files.
Somthing like the Form "Code View" and "Design View".

thank you...
 
well, code files do not have a design view, aspx/html pages do.

However, your aspx page can inherit from a Class that inherits from
System.Web.UI.Page,
but the class itself will still not have a design view, this is a feature of
the Page.

What are you trying to see in terms of a design view of your class?
 
I need to analyze the class and present the parameters.
(lets say that the parameter is an enum, i would like to generate a
designer with the specified parameter and a combobox with the enum
posabileties, for user design mode).

thanks...
 
This combo box would exist in your ASPX page, not your class.
If you really wanted it to exist in your class, you could create a instance
of the ComboBox in your cs class, and pass that to the ASPX page.

But you design where you viewing the combobox would have to be on the ASPX
page, and you could then pass whatever value the user selected back to your
class
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top