C# Custom Server Control : Programatically Hiding/Disabling A Property from the VS DesignTime Property Editor and Intellisence
$30-100 USD
Igangværende
Slået op cirka 16 år siden
$30-100 USD
Betales ved levering
Development Environment : Visual Studio 2005
.NET Framework Version : 2.0
Developing Project : ASP.NET Custom Server Control.
========
PART 1:
========
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".
========
PART 2
=-======
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.