473,382 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Custom Server Controls

Is it possible to build a control that allows you to nest another control in
a base textbox control so that you can say, nest a toolbar in a textbox? If
so what base class do I derive from to allow the textbox control to accept an
toolbar control? Do I have to override the TextBox render event? etc etc...
Nov 19 '05 #1
5 1380
You can use a Composite Server control for this.

Here is a good starting point on MS site:

http://msdn.microsoft.com/library/?u...tecontrols.asp

bill

"I am Sam" <Ia****@discussions.microsoft.com> wrote in message
news:E6**********************************@microsof t.com...
Is it possible to build a control that allows you to nest another control in a base textbox control so that you can say, nest a toolbar in a textbox? If so what base class do I derive from to allow the textbox control to accept an toolbar control? Do I have to override the TextBox render event? etc

etc...
Nov 19 '05 #2
Yes and no. Yes, it is possible to design anything you desire. No, it is not
possible to insert everything into a browser without altering its
funcationality.

What do I mean? Ultimately, all controls have to be rendered as HTML to fit
the browser model. If you step outside of this model, you will have to embed
a control (normal methods are ActiveX and Java). Beyond this, you are better
to use the .NET deploy mechanism to send a client (Windows Forms) to the user.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"I am Sam" wrote:
Is it possible to build a control that allows you to nest another control in
a base textbox control so that you can say, nest a toolbar in a textbox? If
so what base class do I derive from to allow the textbox control to accept an
toolbar control? Do I have to override the TextBox render event? etc etc...

Nov 19 '05 #3
I think I'll author a new composite control based on the textbox control and
custom toolbar control positioned outside the textbox (Sort of like a label)
and have the toolbar manipulate the text string accordingly as opposed to a
nested toolbar within the textbox.

"William F. Robertson, Jr." wrote:
You can use a Composite Server control for this.

Here is a good starting point on MS site:

http://msdn.microsoft.com/library/?u...tecontrols.asp

bill

"I am Sam" <Ia****@discussions.microsoft.com> wrote in message
news:E6**********************************@microsof t.com...
Is it possible to build a control that allows you to nest another control

in
a base textbox control so that you can say, nest a toolbar in a textbox?

If
so what base class do I derive from to allow the textbox control to accept

an
toolbar control? Do I have to override the TextBox render event? etc

etc...

Nov 19 '05 #4
A standard web textbox cannot be a container for other controls.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"I am Sam" <Ia****@discussions.microsoft.com> wrote in message
news:E6**********************************@microsof t.com...
Is it possible to build a control that allows you to nest another control
in
a base textbox control so that you can say, nest a toolbar in a textbox?
If
so what base class do I derive from to allow the textbox control to accept
an
toolbar control? Do I have to override the TextBox render event? etc
etc...

Nov 19 '05 #5
That is the approach to take.

bill

"I am Sam" <Ia****@discussions.microsoft.com> wrote in message
news:B3**********************************@microsof t.com...
I think I'll author a new composite control based on the textbox control and custom toolbar control positioned outside the textbox (Sort of like a label) and have the toolbar manipulate the text string accordingly as opposed to a nested toolbar within the textbox.

"William F. Robertson, Jr." wrote:
You can use a Composite Server control for this.

Here is a good starting point on MS site:

http://msdn.microsoft.com/library/?u...tecontrols.asp
bill

"I am Sam" <Ia****@discussions.microsoft.com> wrote in message
news:E6**********************************@microsof t.com...
Is it possible to build a control that allows you to nest another
control in
a base textbox control so that you can say, nest a toolbar in a
textbox? If
so what base class do I derive from to allow the textbox control to
accept an
toolbar control? Do I have to override the TextBox render event? etc

etc...

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Prasanna | last post by:
Hi all, Does anyone tell me how to set the width of a custom server control. Because my server control comes in a small box forcing some of it's elements to jump into new lines. Thanks in...
0
by: Mark | last post by:
Hi, I am playing around with creating custom server controls for use within a ASP.NET page. I am creating a contact form and have the following question I am capturing the form postback data...
6
by: Anders Borum | last post by:
Hello! I'm looking for the best way to load a custom server control defined by a string (not a user-control - defined by the .ascx extension). The source for the control is defined in e.g. a...
1
by: John Buchmann | last post by:
I'd like to get alot more knowledge on learning how to make custom server controls. All my asp.net books either don't mention it, or briefly discuss it. Does anyone know of a GOOD book on this...
2
by: Charlie | last post by:
Hi: When I drag a my custom server control from the toolbox to design surface it appears invisible except for little green arrow. I can change the width and fill color of control in prop sheet...
0
by: Charlie | last post by:
Hi: When I add controls to item template in DataList, I only see the stock ASP.NET controls. I would like to use one of my own Custom Server Controls instead. How do I do this in 1.0? ...
2
by: Charlie | last post by:
Hi: When using templated columns in DataList, ASP.net server controls can be inserted. Rather than using the base ASP.net server controls, I would like to use one of my own custom server...
0
by: EADeveloper | last post by:
Quick ASP.Net architectural question.... We're creating a set of standard web controls for use in our app, and those custom controls need access to a set of variables that we are initializing at...
0
by: tksc234 | last post by:
Hello there. My question is related to full custom server controls. 1) The 'input' element that caused the postback already has 'Me.UniqueID' in its name field. I assumed, the value of postDataKey...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.