Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

custom web control 1

Status
Not open for further replies.

kurie

Programmer
Jun 4, 2008
170
ZA
Im would like to create a web custom control,c#,
My problem is that i dont seem to see the design window of the control, its only the c# code that i see.
im using framework 2.0 and Visual studio 2005.
here are the steps im following to create the custom control

1.On the File menu, point to New, and then click Project.
The New Project dialog box appears.

2.In the Project Types pane, choose either Visual Basic Projects or Visual C# Projects.
3. Select Web Control Library in the Templates pane.
Change the Name to CustomLabel and click OK.
The new project is created, and WebCustomControl1 opens in the Code Editor.

4.Code for a custom Label control is included in the Web Control Library template by default. This is the control you will use in this walkthrough.
 
I don't think there is a WYSIWYG for custom control libraries. A control will have members like RenderHTML(TextWriter writer) and some others.
You need to implement these members and write the html to the writer.

There are tutorials online about how to create custom controls. These should provide more information on the steps to take.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Thank you very much for your response

I have done a bit of reading and i have discovered that i have to use a user control, I cant seem to find proper links on how to do it, May you please help with links if you got them
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top