By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,187 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,187 IT Pros & Developers. It's quick & easy.

custom web user control properties not acessable through the designer?

P: n/a
PJ6
I'm sure it's some attribute I have to set but I can't find it. I'd like to
be able to have my properties in my custom web user controls show up in the
web forms designer. Is that possible?

Paul
Nov 19 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
I hope someone will correct me if I'm wrong, but user controls do not have
this type of design time support. In 1.x, this is functionality limited to
custom server controls. Thankfully 2.0 will solve this.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"PJ6" <no****@nowhere.net> wrote in message
news:u3**************@TK2MSFTNGP10.phx.gbl...
I'm sure it's some attribute I have to set but I can't find it. I'd like
to be able to have my properties in my custom web user controls show up in
the web forms designer. Is that possible?

Paul

Nov 19 '05 #2

P: n/a
Yes, there are a few attributes you can set on the properties to get them to
show up in the desired place in the properties window.
I've described the details here:
http://SteveOrr.net/articles/InheritAndExtend.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"PJ6" <no****@nowhere.net> wrote in message
news:u3**************@TK2MSFTNGP10.phx.gbl...
I'm sure it's some attribute I have to set but I can't find it. I'd like
to be able to have my properties in my custom web user controls show up in
the web forms designer. Is that possible?

Paul

Nov 19 '05 #3

P: n/a
PJ6
Thank you. If I follow your article right it looks like custom web controls
must be compiled separately from the main project and added to the toolbox
from a DLL for the properties to show up properly at design time.

Also - maybe this is a dumb question - is there any way to add a click event
to a control that doesn't come with one, such as your image rollover
control?

Thanks for your help,
Paul

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eU**************@TK2MSFTNGP12.phx.gbl...
Yes, there are a few attributes you can set on the properties to get them
to show up in the desired place in the properties window.
I've described the details here:
http://SteveOrr.net/articles/InheritAndExtend.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"PJ6" <no****@nowhere.net> wrote in message
news:u3**************@TK2MSFTNGP10.phx.gbl...
I'm sure it's some attribute I have to set but I can't find it. I'd like
to be able to have my properties in my custom web user controls show up
in the web forms designer. Is that possible?

Paul


Nov 19 '05 #4

P: n/a
Yes, custom controls must be compiled into a separate DLL, thereby
increasing their reusability.

I suggest you use the ImageButtonRollover control if you would like a click
event.
For other controls you may have to add your own via client side script.

Here's more info:
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"PJ6" <no****@nowhere.net> wrote in message
news:uX**************@TK2MSFTNGP14.phx.gbl...
Thank you. If I follow your article right it looks like custom web
controls must be compiled separately from the main project and added to
the toolbox from a DLL for the properties to show up properly at design
time.

Also - maybe this is a dumb question - is there any way to add a click
event to a control that doesn't come with one, such as your image rollover
control?

Thanks for your help,
Paul

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eU**************@TK2MSFTNGP12.phx.gbl...
Yes, there are a few attributes you can set on the properties to get them
to show up in the desired place in the properties window.
I've described the details here:
http://SteveOrr.net/articles/InheritAndExtend.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"PJ6" <no****@nowhere.net> wrote in message
news:u3**************@TK2MSFTNGP10.phx.gbl...
I'm sure it's some attribute I have to set but I can't find it. I'd like
to be able to have my properties in my custom web user controls show up
in the web forms designer. Is that possible?

Paul



Nov 19 '05 #5

P: n/a
PJ6
Steve, you rock. Those controls are going to save me time both learning and
developing.

Thanks,
Paul

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Yes, custom controls must be compiled into a separate DLL, thereby
increasing their reusability.

I suggest you use the ImageButtonRollover control if you would like a
click event.
For other controls you may have to add your own via client side script.

Here's more info:
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

Nov 19 '05 #6

P: n/a
I'm glad I was able to help.
Here's more info you may find useful:
http://SteveOrr.net/faq/UserCustom.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"PJ6" <no****@nowhere.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Steve, you rock. Those controls are going to save me time both learning
and developing.

Thanks,
Paul

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Yes, custom controls must be compiled into a separate DLL, thereby
increasing their reusability.

I suggest you use the ImageButtonRollover control if you would like a
click event.
For other controls you may have to add your own via client side script.

Here's more info:
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


Nov 19 '05 #7

P: n/a
PJ6
Question about your ConfirmButton control -

When the user refreshes the web page after the control has been used, a
message pops up, "the page cannot de refershed without resending...", and
then no matter what you select (retry or cancel), the ConfirmButton1_Click
event fires again. In most cases I would think this behavior wouldn't be
acceptable for production use. Is there a way to fix it so that doesn't
happen?

Paul

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I'm glad I was able to help.
Here's more info you may find useful:
http://SteveOrr.net/faq/UserCustom.aspx

Nov 19 '05 #8

P: n/a
You are in the same position with any kind of button control
The real issue is that a post is done when the user clicks a button, and to
refresh that page the post must happen again.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"PJ6" <no****@nowhere.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Question about your ConfirmButton control -

When the user refreshes the web page after the control has been used, a
message pops up, "the page cannot de refershed without resending...", and
then no matter what you select (retry or cancel), the ConfirmButton1_Click
event fires again. In most cases I would think this behavior wouldn't be
acceptable for production use. Is there a way to fix it so that doesn't
happen?

Paul

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I'm glad I was able to help.
Here's more info you may find useful:
http://SteveOrr.net/faq/UserCustom.aspx


Nov 19 '05 #9

P: n/a
PJ6
Hmmm. So is it possible to differentiate if the event is firing from a
refresh and not a click?

I noticed that with multiple controls, only the last user event is fired
again on refresh. I tried to "fool" the page by manually raising the event
of another, dummy control, but that didn't work. Is there a way to, after a
control event fires, redirect where the post will happen on a page refresh
without any special user action?

Thanks for all your help,
Paul

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:uY***************@TK2MSFTNGP12.phx.gbl...
You are in the same position with any kind of button control
The real issue is that a post is done when the user clicks a button, and
to refresh that page the post must happen again.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"PJ6" <no****@nowhere.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Question about your ConfirmButton control -

When the user refreshes the web page after the control has been used, a
message pops up, "the page cannot de refershed without resending...", and
then no matter what you select (retry or cancel), the
ConfirmButton1_Click event fires again. In most cases I would think this
behavior wouldn't be acceptable for production use. Is there a way to fix
it so that doesn't happen?

Paul

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I'm glad I was able to help.
Here's more info you may find useful:
http://SteveOrr.net/faq/UserCustom.aspx



Nov 19 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.