473,836 Members | 1,521 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom Controls

When using a custom control. In order to check and see if values have
changed one has to implement the IPostBackDataCo llection interface. The
values returned for the control seem to be simply a string with comma
delimited values.

For example, if I were to render two text boxes. One with the Value Terry
and the Other with the Value 'Burns' I would get the following value

Terry,Burns.

I need this to be more like this

Forname,Terry,S urname,Burns. So I get get this into a key/Pair collection.

Is there something Im missing here, as I'm not sure how I can do this. I
tried rendering and ID name to see if this would generate this effect, but
it caused the event not to fire.

Any Ideas would be welcome.
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Nov 18 '05 #1
21 2110
I resolved this by using Hidden Input tags, but there must be an easier
slicker way to do this?

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in message
news:OA******** ******@TK2MSFTN GP10.phx.gbl...
When using a custom control. In order to check and see if values have
changed one has to implement the IPostBackDataCo llection interface. The
values returned for the control seem to be simply a string with comma
delimited values.

For example, if I were to render two text boxes. One with the Value Terry
and the Other with the Value 'Burns' I would get the following value

Terry,Burns.

I need this to be more like this

Forname,Terry,S urname,Burns. So I get get this into a key/Pair collection.
Is there something Im missing here, as I'm not sure how I can do this. I
tried rendering and ID name to see if this would generate this effect, but
it caused the event not to fire.

Any Ideas would be welcome.
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Nov 18 '05 #2
Only the person who developed the custom Control can answer this question.
We don't have the source code.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in message
news:OA******** ******@TK2MSFTN GP10.phx.gbl...
When using a custom control. In order to check and see if values have
changed one has to implement the IPostBackDataCo llection interface. The
values returned for the control seem to be simply a string with comma
delimited values.

For example, if I were to render two text boxes. One with the Value Terry
and the Other with the Value 'Burns' I would get the following value

Terry,Burns.

I need this to be more like this

Forname,Terry,S urname,Burns. So I get get this into a key/Pair collection.
Is there something Im missing here, as I'm not sure how I can do this. I
tried rendering and ID name to see if this would generate this effect, but
it caused the event not to fire.

Any Ideas would be welcome.
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Nov 18 '05 #3
Well that would be me.

My question is one of concept, not regarding the particular control in
question.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:e7******** ******@TK2MSFTN GP10.phx.gbl...
Only the person who developed the custom Control can answer this question.
We don't have the source code.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in message news:OA******** ******@TK2MSFTN GP10.phx.gbl...
When using a custom control. In order to check and see if values have
changed one has to implement the IPostBackDataCo llection interface. The
values returned for the control seem to be simply a string with comma
delimited values.

For example, if I were to render two text boxes. One with the Value Terry and the Other with the Value 'Burns' I would get the following value

Terry,Burns.

I need this to be more like this

Forname,Terry,S urname,Burns. So I get get this into a key/Pair

collection.

Is there something Im missing here, as I'm not sure how I can do this. I
tried rendering and ID name to see if this would generate this effect, but it caused the event not to fire.

Any Ideas would be welcome.
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .


Nov 18 '05 #4
> Well that would be me.

My question is one of concept, not regarding the particular control in
question.
In that case, can you tell us what you mean by "the values returned by the
Controls"? A Control is a class, and doesn't return a value. I'm sure you
mean something by this, but I can't figure out what.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in message
news:#w******** ******@TK2MSFTN GP10.phx.gbl... Well that would be me.

My question is one of concept, not regarding the particular control in
question.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:e7******** ******@TK2MSFTN GP10.phx.gbl...
Only the person who developed the custom Control can answer this question.
We don't have the source code.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in

message
news:OA******** ******@TK2MSFTN GP10.phx.gbl...
When using a custom control. In order to check and see if values have
changed one has to implement the IPostBackDataCo llection interface. The values returned for the control seem to be simply a string with comma
delimited values.

For example, if I were to render two text boxes. One with the Value

Terry and the Other with the Value 'Burns' I would get the following value

Terry,Burns.

I need this to be more like this

Forname,Terry,S urname,Burns. So I get get this into a key/Pair

collection.

Is there something Im missing here, as I'm not sure how I can do this. I tried rendering and ID name to see if this would generate this effect, but it caused the event not to fire.

Any Ideas would be welcome.
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .



Nov 18 '05 #5
OK, lets try this one more time.

A custom control allows you to present itself any way you choose rendering
HTML. In the custom control I was writing, I simply wanted a number of text
boxes to return their data and persist in viewstate.

In order to facilitate this your control must implement the
IPostBackDataCo llection interface. However, the following function returns
all the postback data from the web forms and allows you to get the data
specifically for your custom control.
Public Function LoadPostData(By Val postDataKey As String, ByVal
postCollection As System.Collecti ons.Specialized .NameValueColle ction) As
Boolean Implements System.Web.UI.I PostBackDataHan dler.LoadPostDa ta

BUT. . . If you examine the returned value for your cc, this is simply a
number of string values for the elements of the control .

My question was this. Does a slicker way exist to get these values in a
value/pair collection or do we have to resort to adding hidden html fields
so that we can store the FieldName as well as the values. remember, ASP.NET
does not know about the controls within the CC.

Hope this explains a aliitle better
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:up******** *****@TK2MSFTNG P10.phx.gbl...
Well that would be me.

My question is one of concept, not regarding the particular control in
question.
In that case, can you tell us what you mean by "the values returned by the
Controls"? A Control is a class, and doesn't return a value. I'm sure you
mean something by this, but I can't figure out what.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in

message news:#w******** ******@TK2MSFTN GP10.phx.gbl...
Well that would be me.

My question is one of concept, not regarding the particular control in
question.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:e7******** ******@TK2MSFTN GP10.phx.gbl...
Only the person who developed the custom Control can answer this question. We don't have the source code.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in message
news:OA******** ******@TK2MSFTN GP10.phx.gbl...
> When using a custom control. In order to check and see if values have > changed one has to implement the IPostBackDataCo llection interface. The > values returned for the control seem to be simply a string with comma > delimited values.
>
> For example, if I were to render two text boxes. One with the Value

Terry
> and the Other with the Value 'Burns' I would get the following value
>
> Terry,Burns.
>
> I need this to be more like this
>
> Forname,Terry,S urname,Burns. So I get get this into a key/Pair
collection.
>
> Is there something Im missing here, as I'm not sure how I can do
this. I > tried rendering and ID name to see if this would generate this
effect, but
> it caused the event not to fire.
>
> Any Ideas would be welcome.
>
>
> --
>
> OHM ( Terry Burns )
> . . . One-Handed-Man . . .
>
>
>



Nov 18 '05 #6
Actually, that function returns a boolean value, either True or False.
Again, I'm having some trouble understanding your question. However, I have
written some articles on developing custom Server Controls, which may help:

http://www.takempis.com/aspnet_fundamentals.asp
http://www.takempis.com/aspnet_controls.asp
http://www.takempis.com/aspnet_anatomy1.asp
http://www.takempis.com/aspnet_anatomy2.asp
http://www.takempis.com/aspnet_anatomy3.asp

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in message
news:ua******** ******@TK2MSFTN GP10.phx.gbl...
OK, lets try this one more time.

A custom control allows you to present itself any way you choose rendering
HTML. In the custom control I was writing, I simply wanted a number of text boxes to return their data and persist in viewstate.

In order to facilitate this your control must implement the
IPostBackDataCo llection interface. However, the following function returns
all the postback data from the web forms and allows you to get the data
specifically for your custom control.
Public Function LoadPostData(By Val postDataKey As String, ByVal
postCollection As System.Collecti ons.Specialized .NameValueColle ction) As
Boolean Implements System.Web.UI.I PostBackDataHan dler.LoadPostDa ta

BUT. . . If you examine the returned value for your cc, this is simply a
number of string values for the elements of the control .

My question was this. Does a slicker way exist to get these values in a
value/pair collection or do we have to resort to adding hidden html fields
so that we can store the FieldName as well as the values. remember, ASP.NET does not know about the controls within the CC.

Hope this explains a aliitle better
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:up******** *****@TK2MSFTNG P10.phx.gbl...
Well that would be me.

My question is one of concept, not regarding the particular control in
question.


In that case, can you tell us what you mean by "the values returned by the
Controls"? A Control is a class, and doesn't return a value. I'm sure you mean something by this, but I can't figure out what.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in

message
news:#w******** ******@TK2MSFTN GP10.phx.gbl...
Well that would be me.

My question is one of concept, not regarding the particular control in
question.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:e7******** ******@TK2MSFTN GP10.phx.gbl...
> Only the person who developed the custom Control can answer this

question.
> We don't have the source code.
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in
message
> news:OA******** ******@TK2MSFTN GP10.phx.gbl...
> > When using a custom control. In order to check and see if values have > > changed one has to implement the IPostBackDataCo llection interface. The
> > values returned for the control seem to be simply a string with comma > > delimited values.
> >
> > For example, if I were to render two text boxes. One with the
Value Terry
> > and the Other with the Value 'Burns' I would get the following value > >
> > Terry,Burns.
> >
> > I need this to be more like this
> >
> > Forname,Terry,S urname,Burns. So I get get this into a key/Pair
> collection.
> >
> > Is there something Im missing here, as I'm not sure how I can do

this.
I
> > tried rendering and ID name to see if this would generate this

effect, but
> > it caused the event not to fire.
> >
> > Any Ideas would be welcome.
> >
> >
> > --
> >
> > OHM ( Terry Burns )
> > . . . One-Handed-Man . . .
> >
> >
> >
>
>



Nov 18 '05 #7
No no, I'm not refering to the Return value of the function , I'm refering
to the values passed TO the function which contain the data for the control.

postCollection( PostDataKey) is passed, the key is the ID of the control and
the data value in the collection is a string containing the HTML element
values. So if you have two text boxes with values of Me and You, then
returned is "Me,You"

Now do you see what Im driving at ?

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:Oo******** ******@TK2MSFTN GP10.phx.gbl...
Actually, that function returns a boolean value, either True or False.
Again, I'm having some trouble understanding your question. However, I have written some articles on developing custom Server Controls, which may help:
http://www.takempis.com/aspnet_fundamentals.asp
http://www.takempis.com/aspnet_controls.asp
http://www.takempis.com/aspnet_anatomy1.asp
http://www.takempis.com/aspnet_anatomy2.asp
http://www.takempis.com/aspnet_anatomy3.asp

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in message news:ua******** ******@TK2MSFTN GP10.phx.gbl...
OK, lets try this one more time.

A custom control allows you to present itself any way you choose rendering
HTML. In the custom control I was writing, I simply wanted a number of

text
boxes to return their data and persist in viewstate.

In order to facilitate this your control must implement the
IPostBackDataCo llection interface. However, the following function returns all the postback data from the web forms and allows you to get the data
specifically for your custom control.
Public Function LoadPostData(By Val postDataKey As String, ByVal
postCollection As System.Collecti ons.Specialized .NameValueColle ction) As
Boolean Implements System.Web.UI.I PostBackDataHan dler.LoadPostDa ta

BUT. . . If you examine the returned value for your cc, this is simply a
number of string values for the elements of the control .

My question was this. Does a slicker way exist to get these values in a
value/pair collection or do we have to resort to adding hidden html fields so that we can store the FieldName as well as the values. remember,

ASP.NET
does not know about the controls within the CC.

Hope this explains a aliitle better
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:up******** *****@TK2MSFTNG P10.phx.gbl...
> Well that would be me.
>
> My question is one of concept, not regarding the particular control in > question.

In that case, can you tell us what you mean by "the values returned by

the Controls"? A Control is a class, and doesn't return a value. I'm sure you mean something by this, but I can't figure out what.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in

message
news:#w******** ******@TK2MSFTN GP10.phx.gbl...
> Well that would be me.
>
> My question is one of concept, not regarding the particular control in > question.
>
> --
>
> OHM ( Terry Burns )
> . . . One-Handed-Man . . .
>
>
> "Kevin Spencer" <ks******@takem pis.com> wrote in message
> news:e7******** ******@TK2MSFTN GP10.phx.gbl...
> > Only the person who developed the custom Control can answer this
question.
> > We don't have the source code.
> >
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> >
> > "One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in > message
> > news:OA******** ******@TK2MSFTN GP10.phx.gbl...
> > > When using a custom control. In order to check and see if values

have
> > > changed one has to implement the IPostBackDataCo llection interface. The
> > > values returned for the control seem to be simply a string with

comma
> > > delimited values.
> > >
> > > For example, if I were to render two text boxes. One with the Value > Terry
> > > and the Other with the Value 'Burns' I would get the following value > > >
> > > Terry,Burns.
> > >
> > > I need this to be more like this
> > >
> > > Forname,Terry,S urname,Burns. So I get get this into a key/Pair
> > collection.
> > >
> > > Is there something Im missing here, as I'm not sure how I can do

this.
I
> > > tried rendering and ID name to see if this would generate this

effect,
> but
> > > it caused the event not to fire.
> > >
> > > Any Ideas would be welcome.
> > >
> > >
> > > --
> > >
> > > OHM ( Terry Burns )
> > > . . . One-Handed-Man . . .
> > >
> > >
> > >
> >
> >
>
>



Nov 18 '05 #8
PS. Thanks for trying to help anyway, it's appreciated.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:Oo******** ******@TK2MSFTN GP10.phx.gbl...
Actually, that function returns a boolean value, either True or False.
Again, I'm having some trouble understanding your question. However, I have written some articles on developing custom Server Controls, which may help:
http://www.takempis.com/aspnet_fundamentals.asp
http://www.takempis.com/aspnet_controls.asp
http://www.takempis.com/aspnet_anatomy1.asp
http://www.takempis.com/aspnet_anatomy2.asp
http://www.takempis.com/aspnet_anatomy3.asp

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in message news:ua******** ******@TK2MSFTN GP10.phx.gbl...
OK, lets try this one more time.

A custom control allows you to present itself any way you choose rendering
HTML. In the custom control I was writing, I simply wanted a number of

text
boxes to return their data and persist in viewstate.

In order to facilitate this your control must implement the
IPostBackDataCo llection interface. However, the following function returns all the postback data from the web forms and allows you to get the data
specifically for your custom control.
Public Function LoadPostData(By Val postDataKey As String, ByVal
postCollection As System.Collecti ons.Specialized .NameValueColle ction) As
Boolean Implements System.Web.UI.I PostBackDataHan dler.LoadPostDa ta

BUT. . . If you examine the returned value for your cc, this is simply a
number of string values for the elements of the control .

My question was this. Does a slicker way exist to get these values in a
value/pair collection or do we have to resort to adding hidden html fields so that we can store the FieldName as well as the values. remember,

ASP.NET
does not know about the controls within the CC.

Hope this explains a aliitle better
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:up******** *****@TK2MSFTNG P10.phx.gbl...
> Well that would be me.
>
> My question is one of concept, not regarding the particular control in > question.

In that case, can you tell us what you mean by "the values returned by

the Controls"? A Control is a class, and doesn't return a value. I'm sure you mean something by this, but I can't figure out what.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in

message
news:#w******** ******@TK2MSFTN GP10.phx.gbl...
> Well that would be me.
>
> My question is one of concept, not regarding the particular control in > question.
>
> --
>
> OHM ( Terry Burns )
> . . . One-Handed-Man . . .
>
>
> "Kevin Spencer" <ks******@takem pis.com> wrote in message
> news:e7******** ******@TK2MSFTN GP10.phx.gbl...
> > Only the person who developed the custom Control can answer this
question.
> > We don't have the source code.
> >
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> >
> > "One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in > message
> > news:OA******** ******@TK2MSFTN GP10.phx.gbl...
> > > When using a custom control. In order to check and see if values

have
> > > changed one has to implement the IPostBackDataCo llection interface. The
> > > values returned for the control seem to be simply a string with

comma
> > > delimited values.
> > >
> > > For example, if I were to render two text boxes. One with the Value > Terry
> > > and the Other with the Value 'Burns' I would get the following value > > >
> > > Terry,Burns.
> > >
> > > I need this to be more like this
> > >
> > > Forname,Terry,S urname,Burns. So I get get this into a key/Pair
> > collection.
> > >
> > > Is there something Im missing here, as I'm not sure how I can do

this.
I
> > > tried rendering and ID name to see if this would generate this

effect,
> but
> > > it caused the event not to fire.
> > >
> > > Any Ideas would be welcome.
> > >
> > >
> > > --
> > >
> > > OHM ( Terry Burns )
> > > . . . One-Handed-Man . . .
> > >
> > >
> > >
> >
> >
>
>



Nov 18 '05 #9
If you have 2 textboxes coming into the PostDataCollect ion as a single
comma-delimited item, they must have the same "name" attribute on the
client. The HTML form posts the data in the form as name/value pairs, using
the "name" attribute of the client-side form field to link the data with the
form field on the client.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in message
news:#Y******** ******@TK2MSFTN GP11.phx.gbl...
No no, I'm not refering to the Return value of the function , I'm refering
to the values passed TO the function which contain the data for the control.
postCollection( PostDataKey) is passed, the key is the ID of the control and the data value in the collection is a string containing the HTML element
values. So if you have two text boxes with values of Me and You, then
returned is "Me,You"

Now do you see what Im driving at ?

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:Oo******** ******@TK2MSFTN GP10.phx.gbl...
Actually, that function returns a boolean value, either True or False.
Again, I'm having some trouble understanding your question. However, I have
written some articles on developing custom Server Controls, which may

help:

http://www.takempis.com/aspnet_fundamentals.asp
http://www.takempis.com/aspnet_controls.asp
http://www.takempis.com/aspnet_anatomy1.asp
http://www.takempis.com/aspnet_anatomy2.asp
http://www.takempis.com/aspnet_anatomy3.asp

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in

message
news:ua******** ******@TK2MSFTN GP10.phx.gbl...
OK, lets try this one more time.

A custom control allows you to present itself any way you choose rendering HTML. In the custom control I was writing, I simply wanted a number of
text
boxes to return their data and persist in viewstate.

In order to facilitate this your control must implement the
IPostBackDataCo llection interface. However, the following function returns all the postback data from the web forms and allows you to get the
data specifically for your custom control.
Public Function LoadPostData(By Val postDataKey As String, ByVal
postCollection As System.Collecti ons.Specialized .NameValueColle ction) As Boolean Implements System.Web.UI.I PostBackDataHan dler.LoadPostDa ta

BUT. . . If you examine the returned value for your cc, this is simply a number of string values for the elements of the control .

My question was this. Does a slicker way exist to get these values in a value/pair collection or do we have to resort to adding hidden html fields so that we can store the FieldName as well as the values. remember,

ASP.NET
does not know about the controls within the CC.

Hope this explains a aliitle better
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:up******** *****@TK2MSFTNG P10.phx.gbl...
> > Well that would be me.
> >
> > My question is one of concept, not regarding the particular control in
> > question.
>
> In that case, can you tell us what you mean by "the values returned
by the
> Controls"? A Control is a class, and doesn't return a value. I'm
sure you
> mean something by this, but I can't figure out what.
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in
message
> news:#w******** ******@TK2MSFTN GP10.phx.gbl...
> > Well that would be me.
> >
> > My question is one of concept, not regarding the particular
control in > > question.
> >
> > --
> >
> > OHM ( Terry Burns )
> > . . . One-Handed-Man . . .
> >
> >
> > "Kevin Spencer" <ks******@takem pis.com> wrote in message
> > news:e7******** ******@TK2MSFTN GP10.phx.gbl...
> > > Only the person who developed the custom Control can answer this
> question.
> > > We don't have the source code.
> > >
> > > --
> > > HTH,
> > > Kevin Spencer
> > > .Net Developer
> > > Microsoft MVP
> > > Big things are made up
> > > of lots of little things.
> > >
> > > "One Handed Man ( OHM - Terry Burns )" <news.microsoft .com>
wrote
in > > message
> > > news:OA******** ******@TK2MSFTN GP10.phx.gbl...
> > > > When using a custom control. In order to check and see if

values have
> > > > changed one has to implement the IPostBackDataCo llection

interface.
> The
> > > > values returned for the control seem to be simply a string with comma
> > > > delimited values.
> > > >
> > > > For example, if I were to render two text boxes. One with the

Value
> > Terry
> > > > and the Other with the Value 'Burns' I would get the following

value
> > > >
> > > > Terry,Burns.
> > > >
> > > > I need this to be more like this
> > > >
> > > > Forname,Terry,S urname,Burns. So I get get this into a key/Pair > > > collection.
> > > >
> > > > Is there something Im missing here, as I'm not sure how I can do this.
> I
> > > > tried rendering and ID name to see if this would generate this
effect,
> > but
> > > > it caused the event not to fire.
> > > >
> > > > Any Ideas would be welcome.
> > > >
> > > >
> > > > --
> > > >
> > > > OHM ( Terry Burns )
> > > > . . . One-Handed-Man . . .
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 18 '05 #10

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

Similar topics

7
3023
by: Shimon Sim | last post by:
I have a custom composite control I have following property
6
2679
by: Suzanne | last post by:
Hi all, I really hope someone out there can help me as I've been tearing my hair out on this one for a good while and I'm getting really frustrated now! My problem is this - my custom controls periodically disappear from my project when I build it. First of I get the message about a missing dependency, then if I rebuild after that - the control just physically disappears from the form, and I get an object not found error when I
2
2602
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a good while and I'm getting really frustrated now! My problem is this - my custom controls periodically disappear from my
2
1888
by: J R M | last post by:
I've developed a custom control (it's basically a drop-down list and then a couple of textboxes to include meta-data for the selection) that I'm embedding into another custom control (the idea is to allow a dynamic number of control1 to appear in control2). Everything renders correctly, however I could never retrieve data on postback from my embedded controls. Upon closer inspection, all of the embedded controls output without any "name"...
6
11093
by: | last post by:
I have made some user controls with custom properties. I can set those properties on instances of my user controls, and I have programmed my user control to do useful visual things in response to how those properties are set. I want to be able to do two other things: a) add User control instances to my page, filling in the place of placeholder controls, and b) programmatically setting custom properties on those dynamically spawned...
15
6542
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt accept other controls. The control i drag drop on it becomes the child of my custom control's parent form and not the child of my custom control. Then i added this line "" before my custom control class (i dont know what this line does). Now
1
1988
by: rizwanahmed24 | last post by:
Hello i have created a custom control. i have placed two template controls on it. One is check box and second is picture box. The custom control also contain two picture boxes as property. These picture boxes can be filled at design time. I want my custom control to act as container. I drag the controls from toolbox on my custom control. Everything is fine so far. But when i compile the application the two template controls i mentioned...
2
1438
by: Ron | last post by:
I would like some more information on custom controls, what they can do and things like that, what you would use them for etc... Can anyone here share some examples of what you have used a custom control for and possibly email a zip file with that control so I could run it in a program to see how it worked? to pts4560 <atyahoo.com ? thanks.
1
2184
by: Abdo Haji-Ali | last post by:
Previously I used to create user controls if I wanted to use a specific set of controls in multiple pages, however I want to deploy my control in other applications so I thought of creating custom controls. Only problem is that I'm used to designing my controls in a WYSIWYG (tm) way (i.e. using the designer and writing HTML tags). The only way I found to create custom controls was to create controls dynamically, set their properties and...
5
4137
by: gerry | last post by:
I am trying to create a custom container control that will only ever contain a specific type of control. At design time, when a control of a different type is added to the container I would like to wrap the control in the proper control type - which is also a container. At design time I want to be able to turn this : <my:container> <asp:textbox />
0
9825
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9671
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10846
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10551
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9379
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6979
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5650
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3116
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.