473,563 Members | 2,895 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET ControlDesigner & smart tags

Hey folks.
I'm developing an ASP.NET custom control and have assciated a custom
ControlDesigner with it. I'm using smart tags in design time like this:

public override DesignerActionI temCollection
GetSortedAction Items()
{
if (_actions == null)
{
_actions = new DesignerActionI temCollection() ;
_actions.Add(ne w DesignerActionM ethodItem(this,
"EditValues ", "Edit values", true));
}

return _actions;
}

public void EditValues()
{
((MyComponent)t his.Component). Foo = "bar";
// I guess I need to call something here
}

When I click "Edit values" smart tag, the property Foo will get a
value "bar", it's nicely shown in the Properties window, but when I go
to the HTML Source of the ASP.NET page, property Foo is not set in the
code:
<cc:MyCompone nt runat="server" ID="myc1" />
When I go back to design view, Foo is empty.
So i guess after setting Foo to "bar" I need to call something, that
will refresh the HTML to something like:
<cc:MyCompone nt runat="server" ID="myc1" Foo="bar" />

Please, help me out of this. Thanks.

Apr 29 '07 #1
0 1246

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

Similar topics

6
1976
by: anon | last post by:
How *EXACTLY* does Smart Navigation work? (I would really really really like for this Smart Navigation to work in Mozilla.) The inner workings and the code is what I am looking for. Does it use JavaScript? If so, is there any code that someone can point to. And can the ASP.NET 2.0 team get this work in Mozilla....sort of targeting...
10
3116
by: C Williams | last post by:
Hi, In a nutshell, my question is: how do i make a dll that I compile from vb.net code register and work like one compiled as an ActiveX dll in VB6? The IDE of my copy of visual basic.net does not provide me with the option to build a class library (dll)--instead I can use the command line (though I don't know how to replicate the...
14
5915
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only because of this, so I hope some of you gurus can enlighten me with this :) In what circumstances can the "&amp;" in the source code be involuntary...
1
2369
by: Joe | last post by:
I'm working on a usercontrol, and an associated ControlDesigner for it. In the designer, when I mouse over a particular area of the usercontrol, I want to change the cursor from the standard SizeAll, to SizeWE. In the class for my derived ControlDesigner, i have the following code: protected override void OnSetCursor() { try {
1
609
by: jmarr02s | last post by:
I am trying to enable the Person Name Smart Tag, but after I open up my table in Design view and select the field (in this case CustomerName field), click in the Smart Tag text box, click the Build button to launch the Smart Tags window, and select Person Name at the top of the Smart Tags window...under Actions (at the bottom of the Smart Tags...
7
4600
by: John Nagle | last post by:
I've been parsing existing HTML with BeautifulSoup, and occasionally hit content which has something like "Design & Advertising", that is, an "&" instead of an "&amp;". Is there some way I can get BeautifulSoup to clean those up? There are various parsing options related to "&" handling, but none of them seem to do quite the right thing. If I...
0
5542
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
42
2647
by: coder_lol | last post by:
Thanks everyone again for contributing to helping me clear C++ confusions. I did some serious reading on copy constructors and assignments and I think I've got a good handle on the memory stuff. Well, I came across Scott Meyer's SmartPtr example from some 10 years ago. I like the template member function for type conversion to solve...
0
2404
by: SpaceMarine | last post by:
hello, im having a discussion w/ one of my associates, and we're are trying to get a consensus on a possible performance scenario. we're working a/ 3-rd party component that produces PDFs using "XML-FO", a verbose description & layout doc. it can accept either: 1) a complete, verbose XML-FO doc 2) data-only XML, plus an XSLT doc to...
0
7665
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...
0
7583
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...
0
7888
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. ...
0
8106
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...
0
7950
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...
0
6255
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...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.