Home > DeveloperSection > Forums > Custom ASP binding mechanism problem
marcel ethan
marcel ethan

Total Post:105

Posted on    August-23-2014 8:30 AM

 ASP.Net ASP.Net 

 1 Reply(s)
 648  View(s)
Rate this:

I've created my own DataBinding mechanism and I need some solution to do somthing like this:

I have this example code in my ASPX

<myButton id="someID" runat="server" Text="SomeText" BackColor="{SomeContext}" />

I thought that I can use my own class inherited from TypeConverter and catch the moment of converting value {SomeContext} to Color (the BackColor property). I can catch this moment, but I have no info about target control, only empty context of String value. If anyone know how to get target property somehow, will be very!! helpful.

Sumit Kesarwani

Total Post:378

Posted on    August-23-2014 8:38 AM

Hi Marcel, 

try this:

<myButton runat="server" ID="someID">


       <Bind Target="BackColor" Source="ColorOfBackgroundFromContext" />

       <Bind Target="ForColor" Source="ColorOfForegroundFromContext" />



Don't want to miss updates? Please click the below button!

Follow MindStick