Em Andamento

C# Custom Server Control : Programatically Hiding/Disabling A Property from the VS DesignTime Property Editor and Intellisence

Development Environment : Visual Studio 2005

.NET Framework Version : 2.0

Developing Project : ASP.NET Custom Server Control.




I want to hide some properties dynamically from Proerty Editor Browser in Visual Studio 2005 (using C#.NEt 2.0) and also from Intellisence based on the value of other properties ?

Let me explain:

Say, I have a server control which takes Postal Address from user. Now, USA postal address takes 5 digit Zip Code of numeric value and Canadian postal address takes 6 digit AlphaNumeric Code. Now, I may want to create properties like this,

class Postal_Address : Control


string streetAddress,

string city,

string Country

int ZipCode // For USA.

string PostCode // For Canada


Now, when The control will be placed on the Web Form from Visual Studio, I want that if Country is set to USA, then postCode property will be invisible in the Property Editor Browser and only ZipCode property will be visible to edit. Then, if the user change the value of the country to "Canada", the ZipCode property will be invisible and PostCode property will be visible.

Please let me know if you can do that. If you can do that, then just create a sample control with the mentioned properties and show me that ZipCode or Postal Code properties are being visible and invisible based on the value of the property named "country".




I want to know how to override the hosting page's Render Method from within a server control ? For example, I would like to modify the whole page's html from my server control.


Accepted Form for Submission:

Please give me a complete Visual Studio 2005 Project Solution for the source code of your custom control, with a testing web application within the same VS Solution.

You can send me a compiled DLL initially for providing the proof that you have done the work in order to get the money escrowed. Finally when you will send me the real source code, I will finish the escrowed fund.


Please let me know if you can do either Part 1 or Part 2 or both. Please submit your quote individually for Part 1 and Part 2. If you can do only one part, still let me know your interest with the quote for your interested part.

Thank you.

Please note : I want the property filtering should happen instantly while the page is open in the Visual Studio. This feature will be added to a commercial project and if the developer needs to close and open the page everytime to see the new filtered property, then it will be of no use. So, please let me know if you can make the property hiding stuffs without requiring the page close and open.

I want that, as soon as the country value is changed, the property editor must be updated instantly in front of the user while the page is open. The purpose of this control is to provide my user a friendly interface to filter out only the required properties for configuring a page.

Habilidades: .NET, ASP, Área de trabalho do Windows

Veja mais: custom server control, hide property, create server control, server control, server control property editor, custom control, custom control property editor, custom property server control, create custom server control, hide property editor, hide server control, custom web server control, server control project, custom control disable property, custom hide control property, hide properties custom control, custom control web, disable properties custom control, vs2005 custom server control, custom server web control

Acerca do Empregador:
( 14 comentários ) Whitby, Canada

ID do Projeto: #215646