473,397 Members | 1,949 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,397 software developers and data experts.

custom web user control properties not acessable through the designer?

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
9 1717
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: James Geurts | last post by:
Hey all... I posted this in the vs.net ide group too, but people are not answering, so I figured that it might be more appropriate here. I'm not sure if I'm adding a designer to my code properly. ...
7
by: Martin Schulze | last post by:
Hello, i tried to compose myself a custom usercontrol which is derieved from System.Windows.Forms.UserControl. It contains 2 comboboxes and one textbox (which are also custom controls, but...
4
by: Paradox | last post by:
Hey, I'm trying to figure out what situations call for the use of a derived form control such as: public class myListBox : System.Windows.Forms.ListBox and what situations call for the use...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
1
by: chambersdon | last post by:
How do I get the public properties of my custom control to show in the designer. The properties are all Strings but they do not show up in the designer property window. My custom control...
0
by: Don | last post by:
I have a custom control with a custom designer. This designer allows me to open a dialog to define custom properties the way 'Property Builder' works for the datagrid. After I set the properties...
15
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...
0
by: ChopStickr | last post by:
I have a custom control that is embedded (using the object tag) in an html document. The control takes a path to a local client ini file. Reads the file. Executes the program specified in...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.