Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

docmd.close 2585, WWWXXXAPC, WWWXXXDOCO, nu vot, dhcpd lease file "binding state", WWWXXXDOCO, how to setup procmail to process html2text, how to setup procmail html2text, WWWXXXAPC., XXXCNZZZ

Links

XODOX
Impressum

#1: Data Binding and Formatting Problem

Posted on 2008-04-17 00:23:31 by Tomasz Jastrzebski

Hello developers,

I bind my TextBox control specyfying a format stored in my application
global ApplicationContext object - it has a static string CurrencyFormat
property.

The problem - this works fine:

Text='<%# Eval("Price", ApplicationContext.CurrencyFormat) %>'

but this does not:

Text='<%# Bind("Price", ApplicationContext.CurrencyFormat) %>'
(Parser Error Message: A call to Bind was not well formatted)

Could anyone suggest a solution?
The objective: store format strings globally.

Thank you for any hints.

Thomas Jastrzebski

Report this message

#2: RE: Data Binding and Formatting Problem

Posted on 2008-04-17 08:18:36 by stcheng

Hi Tomasz,

Regarding on the Databinding expression issue you mentioned, I've performed
some tests and did encounter the behavior you mentioned. I've checked the
document, though the formatting of "Bind" is not definitely documented, it
mentioned that Bind doesn't provide the exact same set of databound
functionality like Eval. For example, Eval support complex hierarchy class
object databound while Bind not. The NumberFomatInfo should also be
limited by the Bind expression. I'll help you forward the problem to some
other ASP.NET engineers to see whether they have any further ideas on this.
You can also submit the problem to our connect site:

http://connect.microsoft.com/feedback/default.aspx?SiteID=21 0

So far, as a workaround, you may need to use Eval instead of Bind for the
display formatting. And manually set the parameter for editing/updating.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "Tomasz J" <oegweb@nospam.nospam>
>Subject: Data Binding and Formatting Problem
>Date: Thu, 17 Apr 2008 00:23:31 +0200

>
>Hello developers,
>
>I bind my TextBox control specyfying a format stored in my application
>global ApplicationContext object - it has a static string CurrencyFormat
>property.
>
>The problem - this works fine:
>
>Text='<%# Eval("Price", ApplicationContext.CurrencyFormat) %>'
>
>but this does not:
>
>Text='<%# Bind("Price", ApplicationContext.CurrencyFormat) %>'
>(Parser Error Message: A call to Bind was not well formatted)
>
>Could anyone suggest a solution?
>The objective: store format strings globally.
>
>Thank you for any hints.
>
>Thomas Jastrzebski
>
>
>

Report this message

#3: Re: Data Binding and Formatting Problem

Posted on 2008-04-17 10:26:18 by Tomasz Jastrzebski

Hello Steve,

Thank you for a swift response.
I cannot use Eval - I presented this code for a problem demonstration only.
Eval provides one-way binding only, while I also need to unbind my data in
order to store user changes.

Kind regards,

Thomas Jastrzebski

"Steven Cheng [MSFT]" <stcheng@online.microsoft.com> wrote in message
news:YPQ9jLFoIHA.10116@TK2MSFTNGHUB02.phx.gbl...
> Hi Tomasz,
>
> Regarding on the Databinding expression issue you mentioned, I've
> performed
> some tests and did encounter the behavior you mentioned. I've checked the
> document, though the formatting of "Bind" is not definitely documented, it
> mentioned that Bind doesn't provide the exact same set of databound
> functionality like Eval. For example, Eval support complex hierarchy
> class
> object databound while Bind not. The NumberFomatInfo should also be
> limited by the Bind expression. I'll help you forward the problem to some
> other ASP.NET engineers to see whether they have any further ideas on
> this.
> You can also submit the problem to our connect site:
>
> http://connect.microsoft.com/feedback/default.aspx?SiteID=21 0
>
> So far, as a workaround, you may need to use Eval instead of Bind for the
> display formatting. And manually set the parameter for editing/updating.
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msdnmg@microsoft.com.
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
> ications.
>
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> --------------------
>>From: "Tomasz J" <oegweb@nospam.nospam>
>>Subject: Data Binding and Formatting Problem
>>Date: Thu, 17 Apr 2008 00:23:31 +0200
>
>>
>>Hello developers,
>>
>>I bind my TextBox control specyfying a format stored in my application
>>global ApplicationContext object - it has a static string CurrencyFormat
>>property.
>>
>>The problem - this works fine:
>>
>>Text='<%# Eval("Price", ApplicationContext.CurrencyFormat) %>'
>>
>>but this does not:
>>
>>Text='<%# Bind("Price", ApplicationContext.CurrencyFormat) %>'
>>(Parser Error Message: A call to Bind was not well formatted)
>>
>>Could anyone suggest a solution?
>>The objective: store format strings globally.
>>
>>Thank you for any hints.
>>
>>Thomas Jastrzebski
>>
>>
>>
>

Report this message

#4: Re: Data Binding and Formatting Problem

Posted on 2008-04-17 11:39:04 by Tomasz Jastrzebski

This issue has been described as item 338632
https://connect.microsoft.com/VisualStudio/feedback/ViewFeed back.aspx?FeedbackID=338632

Thanks,

Thomas Jastrzebski

"Steven Cheng [MSFT]" <stcheng@online.microsoft.com> wrote in message
news:YPQ9jLFoIHA.10116@TK2MSFTNGHUB02.phx.gbl...
> Hi Tomasz,
>
> Regarding on the Databinding expression issue you mentioned, I've
> performed
> some tests and did encounter the behavior you mentioned. I've checked the
> document, though the formatting of "Bind" is not definitely documented, it
> mentioned that Bind doesn't provide the exact same set of databound
> functionality like Eval. For example, Eval support complex hierarchy
> class
> object databound while Bind not. The NumberFomatInfo should also be
> limited by the Bind expression. I'll help you forward the problem to some
> other ASP.NET engineers to see whether they have any further ideas on
> this.
> You can also submit the problem to our connect site:
>
> http://connect.microsoft.com/feedback/default.aspx?SiteID=21 0
>
> So far, as a workaround, you may need to use Eval instead of Bind for the
> display formatting. And manually set the parameter for editing/updating.
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msdnmg@microsoft.com.
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
> ications.
>
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> --------------------
>>From: "Tomasz J" <oegweb@nospam.nospam>
>>Subject: Data Binding and Formatting Problem
>>Date: Thu, 17 Apr 2008 00:23:31 +0200
>
>>
>>Hello developers,
>>
>>I bind my TextBox control specyfying a format stored in my application
>>global ApplicationContext object - it has a static string CurrencyFormat
>>property.
>>
>>The problem - this works fine:
>>
>>Text='<%# Eval("Price", ApplicationContext.CurrencyFormat) %>'
>>
>>but this does not:
>>
>>Text='<%# Bind("Price", ApplicationContext.CurrencyFormat) %>'
>>(Parser Error Message: A call to Bind was not well formatted)
>>
>>Could anyone suggest a solution?
>>The objective: store format strings globally.
>>
>>Thank you for any hints.
>>
>>Thomas Jastrzebski
>>
>>
>>
>

Report this message

#5: Re: Data Binding and Formatting Problem

Posted on 2008-04-18 08:56:24 by stcheng

Hi Tomasz,

Thanks for infoming me this. I've forward this issue to some other ASP.NET
engineers (also include the connect report link). I'll update you if I get
any new information.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Tomasz J" <oegweb@nospam.nospam>
>References: <##5l6BBoIHA.2068@TK2MSFTNGP05.phx.gbl>
<YPQ9jLFoIHA.10116@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: Data Binding and Formatting Problem
>Date: Thu, 17 Apr 2008 11:39:04 +0200

>This issue has been described as item 338632
>https://connect.microsoft.com/VisualStudio/feedback/ViewFee dback.aspx?Feedb
ackID=338632
>
>Thanks,
>
>Thomas Jastrzebski
>
>"Steven Cheng [MSFT]" <stcheng@online.microsoft.com> wrote in message
>news:YPQ9jLFoIHA.10116@TK2MSFTNGHUB02.phx.gbl...
>> Hi Tomasz,
>>
>> Regarding on the Databinding expression issue you mentioned, I've
>> performed
>> some tests and did encounter the behavior you mentioned. I've checked
the
>> document, though the formatting of "Bind" is not definitely documented,
it
>> mentioned that Bind doesn't provide the exact same set of databound
>> functionality like Eval. For example, Eval support complex hierarchy
>> class
>> object databound while Bind not. The NumberFomatInfo should also be
>> limited by the Bind expression. I'll help you forward the problem to
some
>> other ASP.NET engineers to see whether they have any further ideas on
>> this.
>> You can also submit the problem to our connect site:
>>
>> http://connect.microsoft.com/feedback/default.aspx?SiteID=21 0
>>
>> So far, as a workaround, you may need to use Eval instead of Bind for the
>> display formatting. And manually set the parameter for editing/updating.
>>
>> Sincerely,
>>
>> Steven Cheng
>>
>> Microsoft MSDN Online Support Lead
>>
>>
>> Delighting our customers is our #1 priority. We welcome your comments and
>> suggestions about how we can improve the support we provide to you.
Please
>> feel free to let my manager know what you think of the level of service
>> provided. You can send feedback directly to my manager at:
>> msdnmg@microsoft.com.
>>
>> ==================================================
>> Get notification to my posts through email? Please refer to
>>
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
>> ications.
>>
>> ==================================================
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> --------------------
>>>From: "Tomasz J" <oegweb@nospam.nospam>
>>>Subject: Data Binding and Formatting Problem
>>>Date: Thu, 17 Apr 2008 00:23:31 +0200
>>
>>>
>>>Hello developers,
>>>
>>>I bind my TextBox control specyfying a format stored in my application
>>>global ApplicationContext object - it has a static string CurrencyFormat
>>>property.
>>>
>>>The problem - this works fine:
>>>
>>>Text='<%# Eval("Price", ApplicationContext.CurrencyFormat) %>'
>>>
>>>but this does not:
>>>
>>>Text='<%# Bind("Price", ApplicationContext.CurrencyFormat) %>'
>>>(Parser Error Message: A call to Bind was not well formatted)
>>>
>>>Could anyone suggest a solution?
>>>The objective: store format strings globally.
>>>
>>>Thank you for any hints.
>>>
>>>Thomas Jastrzebski
>>>
>>>
>>>
>>
>
>
>

Report this message

#6: Re: Data Binding and Formatting Problem

Posted on 2008-04-22 07:35:31 by stcheng

Hi Tomasz,

After some further consulting, I've got some information on the Bind
expression from some ASP.NET dev engineer. They told me that this is an
by-design behavior. The Bind() statement doesn't allow specifying any
format info. It just allows a a field name and an optional format string.

And one of the dev engineers has published a blog entry describe how bind
expression works:

http://weblogs.asp.net/leftslipper/archive/2007/06/29/how-as p-net-databindin
g-deals-with-eval-and-bind-statements.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
>Content-Transfer-Encoding: 7bit
>From: stcheng@online.microsoft.com (Steven Cheng [MSFT])
>Organization: Microsoft
>Date: Fri, 18 Apr 2008 06:56:24 GMT
>Subject: Re: Data Binding and Formatting Problem

>
>Hi Tomasz,
>
>Thanks for infoming me this. I've forward this issue to some other
ASP.NET
>engineers (also include the connect report link). I'll update you if I get
>any new information.
>
>Sincerely,
>
>Steven Cheng
>
>Microsoft MSDN Online Support Lead
>
>
>Delighting our customers is our #1 priority. We welcome your comments and
>suggestions about how we can improve the support we provide to you. Please
>feel free to let my manager know what you think of the level of service
>provided. You can send feedback directly to my manager at:
>msdnmg@microsoft.com.
>
>==================================================
>Get notification to my posts through email? Please refer to
>http://msdn.microsoft.com/subscriptions/managednewsgroups/d efault.aspx#noti
f
>ications.
>
>==================================================
>This posting is provided "AS IS" with no warranties, and confers no rights.
>--------------------
>>From: "Tomasz J" <oegweb@nospam.nospam>
>>References: <##5l6BBoIHA.2068@TK2MSFTNGP05.phx.gbl>
><YPQ9jLFoIHA.10116@TK2MSFTNGHUB02.phx.gbl>
>>Subject: Re: Data Binding and Formatting Problem
>>Date: Thu, 17 Apr 2008 11:39:04 +0200
>
>>This issue has been described as item 338632
>>https://connect.microsoft.com/VisualStudio/feedback/ViewFe edback.aspx?Feed
b
>ackID=338632
>>
>>Thanks,
>>
>>Thomas Jastrzebski
>>
>>"Steven Cheng [MSFT]" <stcheng@online.microsoft.com> wrote in message
>>news:YPQ9jLFoIHA.10116@TK2MSFTNGHUB02.phx.gbl...
>>> Hi Tomasz,
>>>
>>> Regarding on the Databinding expression issue you mentioned, I've
>>> performed
>>> some tests and did encounter the behavior you mentioned. I've checked
>the
>>> document, though the formatting of "Bind" is not definitely documented,
>it
>>> mentioned that Bind doesn't provide the exact same set of databound
>>> functionality like Eval. For example, Eval support complex hierarchy
>>> class
>>> object databound while Bind not. The NumberFomatInfo should also be
>>> limited by the Bind expression. I'll help you forward the problem to
>some
>>> other ASP.NET engineers to see whether they have any further ideas on
>>> this.
>>> You can also submit the problem to our connect site:
>>>
>>> http://connect.microsoft.com/feedback/default.aspx?SiteID=21 0
>>>
>>> So far, as a workaround, you may need to use Eval instead of Bind for
the
>>> display formatting. And manually set the parameter for editing/updating.
>>>
>>> Sincerely,
>>>
>>> Steven Cheng
>>>
>>> Microsoft MSDN Online Support Lead
>>>
>>>
>>> Delighting our customers is our #1 priority. We welcome your comments
and
>>> suggestions about how we can improve the support we provide to you.
>Please
>>> feel free to let my manager know what you think of the level of service
>>> provided. You can send feedback directly to my manager at:
>>> msdnmg@microsoft.com.
>>>
>>> ==================================================
>>> Get notification to my posts through email? Please refer to
>>>
>http://msdn.microsoft.com/subscriptions/managednewsgroups/d efault.aspx#noti
f
>>> ications.
>>>
>>> ==================================================
>>> This posting is provided "AS IS" with no warranties, and confers no
>>> rights.
>>>
>>> --------------------
>>>>From: "Tomasz J" <oegweb@nospam.nospam>
>>>>Subject: Data Binding and Formatting Problem
>>>>Date: Thu, 17 Apr 2008 00:23:31 +0200
>>>
>>>>
>>>>Hello developers,
>>>>
>>>>I bind my TextBox control specyfying a format stored in my application
>>>>global ApplicationContext object - it has a static string CurrencyFormat
>>>>property.
>>>>
>>>>The problem - this works fine:
>>>>
>>>>Text='<%# Eval("Price", ApplicationContext.CurrencyFormat) %>'
>>>>
>>>>but this does not:
>>>>
>>>>Text='<%# Bind("Price", ApplicationContext.CurrencyFormat) %>'
>>>>(Parser Error Message: A call to Bind was not well formatted)
>>>>
>>>>Could anyone suggest a solution?
>>>>The objective: store format strings globally.
>>>>
>>>>Thank you for any hints.
>>>>
>>>>Thomas Jastrzebski
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>
>

Report this message

#7: Re: Data Binding and Formatting Problem

Posted on 2008-04-23 11:33:55 by Tomasz Jastrzebski

Thanks.

I know Bind does not support format info. I never tried to use it that way.
The point is that it does not also support format string as expressions. It
supports constant strings - predefined formats only.

Thomas


"Steven Cheng [MSFT]" <stcheng@online.microsoft.com> wrote in message
news:L34Z2qDpIHA.2252@TK2MSFTNGHUB02.phx.gbl...
> Hi Tomasz,
>
> After some further consulting, I've got some information on the Bind
> expression from some ASP.NET dev engineer. They told me that this is an
> by-design behavior. The Bind() statement doesn't allow specifying any
> format info. It just allows a a field name and an optional format string.
>
> And one of the dev engineers has published a blog entry describe how bind
> expression works:
>
> http://weblogs.asp.net/leftslipper/archive/2007/06/29/how-as p-net-databindin
> g-deals-with-eval-and-bind-statements.aspx
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msdnmg@microsoft.com.
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
> ications.
>
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> --------------------
>>Content-Transfer-Encoding: 7bit
>>From: stcheng@online.microsoft.com (Steven Cheng [MSFT])
>>Organization: Microsoft
>>Date: Fri, 18 Apr 2008 06:56:24 GMT
>>Subject: Re: Data Binding and Formatting Problem
>
>>
>>Hi Tomasz,
>>
>>Thanks for infoming me this. I've forward this issue to some other
> ASP.NET
>>engineers (also include the connect report link). I'll update you if I get
>>any new information.
>>
>>Sincerely,
>>
>>Steven Cheng
>>
>>Microsoft MSDN Online Support Lead
>>
>>
>>Delighting our customers is our #1 priority. We welcome your comments and
>>suggestions about how we can improve the support we provide to you. Please
>>feel free to let my manager know what you think of the level of service
>>provided. You can send feedback directly to my manager at:
>>msdnmg@microsoft.com.
>>
>>==================================================
>>Get notification to my posts through email? Please refer to
>>http://msdn.microsoft.com/subscriptions/managednewsgroups/ default.aspx#noti
> f
>>ications.
>>
>>==================================================
>>This posting is provided "AS IS" with no warranties, and confers no
>>rights.
>>--------------------
>>>From: "Tomasz J" <oegweb@nospam.nospam>
>>>References: <##5l6BBoIHA.2068@TK2MSFTNGP05.phx.gbl>
>><YPQ9jLFoIHA.10116@TK2MSFTNGHUB02.phx.gbl>
>>>Subject: Re: Data Binding and Formatting Problem
>>>Date: Thu, 17 Apr 2008 11:39:04 +0200
>>
>>>This issue has been described as item 338632
>>>https://connect.microsoft.com/VisualStudio/feedback/ViewF eedback.aspx?Feed
> b
>>ackID=338632
>>>
>>>Thanks,
>>>
>>>Thomas Jastrzebski
>>>
>>>"Steven Cheng [MSFT]" <stcheng@online.microsoft.com> wrote in message
>>>news:YPQ9jLFoIHA.10116@TK2MSFTNGHUB02.phx.gbl...
>>>> Hi Tomasz,
>>>>
>>>> Regarding on the Databinding expression issue you mentioned, I've
>>>> performed
>>>> some tests and did encounter the behavior you mentioned. I've checked
>>the
>>>> document, though the formatting of "Bind" is not definitely documented,
>>it
>>>> mentioned that Bind doesn't provide the exact same set of databound
>>>> functionality like Eval. For example, Eval support complex hierarchy
>>>> class
>>>> object databound while Bind not. The NumberFomatInfo should also be
>>>> limited by the Bind expression. I'll help you forward the problem to
>>some
>>>> other ASP.NET engineers to see whether they have any further ideas on
>>>> this.
>>>> You can also submit the problem to our connect site:
>>>>
>>>> http://connect.microsoft.com/feedback/default.aspx?SiteID=21 0
>>>>
>>>> So far, as a workaround, you may need to use Eval instead of Bind for
> the
>>>> display formatting. And manually set the parameter for
>>>> editing/updating.
>>>>
>>>> Sincerely,
>>>>
>>>> Steven Cheng
>>>>
>>>> Microsoft MSDN Online Support Lead
>>>>
>>>>
>>>> Delighting our customers is our #1 priority. We welcome your comments
> and
>>>> suggestions about how we can improve the support we provide to you.
>>Please
>>>> feel free to let my manager know what you think of the level of service
>>>> provided. You can send feedback directly to my manager at:
>>>> msdnmg@microsoft.com.
>>>>
>>>> ==================================================
>>>> Get notification to my posts through email? Please refer to
>>>>
>>http://msdn.microsoft.com/subscriptions/managednewsgroups/ default.aspx#noti
> f
>>>> ications.
>>>>
>>>> ==================================================
>>>> This posting is provided "AS IS" with no warranties, and confers no
>>>> rights.
>>>>
>>>> --------------------
>>>>>From: "Tomasz J" <oegweb@nospam.nospam>
>>>>>Subject: Data Binding and Formatting Problem
>>>>>Date: Thu, 17 Apr 2008 00:23:31 +0200
>>>>
>>>>>
>>>>>Hello developers,
>>>>>
>>>>>I bind my TextBox control specyfying a format stored in my application
>>>>>global ApplicationContext object - it has a static string
>>>>>CurrencyFormat
>>>>>property.
>>>>>
>>>>>The problem - this works fine:
>>>>>
>>>>>Text='<%# Eval("Price", ApplicationContext.CurrencyFormat) %>'
>>>>>
>>>>>but this does not:
>>>>>
>>>>>Text='<%# Bind("Price", ApplicationContext.CurrencyFormat) %>'
>>>>>(Parser Error Message: A call to Bind was not well formatted)
>>>>>
>>>>>Could anyone suggest a solution?
>>>>>The objective: store format strings globally.
>>>>>
>>>>>Thank you for any hints.
>>>>>
>>>>>Thomas Jastrzebski
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>
>>
>

Report this message

#8: Re: Data Binding and Formatting Problem

Posted on 2008-04-24 05:29:47 by stcheng

Hi Tomasz,

Yes, only a simple constant format string is allowed in the Bind
expression. Actually, as Elion mentioned in his blog entry, Bind expression
will not allow any format expression that is generated by additional
function call or operates.

However, I think it's a good suggestion that the Bind expression be
improved to support more formatting options. You're welcome to post your
comments to our connect site:

#Visual Studio and .NET Framework - English
http://connect.microsoft.com/feedback/default.aspx?SiteID=21 0

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
>From: "Tomasz J" <oegweb@nospam.nospam>
>Subject: Re: Data Binding and Formatting Problem
>Date: Wed, 23 Apr 2008 11:33:55 +0200

>Thanks.
>
>I know Bind does not support format info. I never tried to use it that way.
>The point is that it does not also support format string as expressions.
It
>supports constant strings - predefined formats only.
>
>Thomas
>
>
>"Steven Cheng [MSFT]" <stcheng@online.microsoft.com> wrote in message
>news:L34Z2qDpIHA.2252@TK2MSFTNGHUB02.phx.gbl...
>> Hi Tomasz,
>>
>> After some further consulting, I've got some information on the Bind
>> expression from some ASP.NET dev engineer. They told me that this is an
>> by-design behavior. The Bind() statement doesn't allow specifying any
>> format info. It just allows a a field name and an optional format string.
>>
>> And one of the dev engineers has published a blog entry describe how bind
>> expression works:
>>
>>
http://weblogs.asp.net/leftslipper/archive/2007/06/29/how-as p-net-databindin
>> g-deals-with-eval-and-bind-statements.aspx
>>
>> Sincerely,
>>
>> Steven Cheng
>>
>>

Report this message