-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Wolverine
Message 2 in Discussion

Try typecasting container as Repeater and then accessing the Data item.

> -----Original Message-----
> From: BDOTNET [SMTP:[EMAIL PROTECTED]
> Sent: Monday, November 17, 2003 5:33 PM
> To:   BDOTNET
> Subject:      Problem in DataBinder
> 
> -----------------------------------------------------------
> 
> New Message on BDOTNET
> 
> -----------------------------------------------------------
> From: Prem720
> Message 1 in Discussion
> 
> 
>       Hi group,
> 
>               I am having problem in type casting this expression in ascx
> control
>                       
>               I am having the code like this in my user control
>               
>       
> <%#DataBinder.Eval((RepeaterItem)Container.DataItem,"YearOfRelease")%>.
> 
>               I am getting an exception like this 
> 
>       Compiler Error Message: CS0117: 'System.Web.UI.Control' does not
> contain a definition for 'DataItem'.
> 
>       The same code in VB.net work fine,
>       The same expression in vb.net looks like this
>       <%# DataBinder.Eval( CType( Container, RepeaterItem ).DataItem,
> "Title" ) %> 
> 
> 
>       How to go about this error
> 
> 
>       Regards
>       premchand
> 
> ____________________________________________
> Confidential:  This electronic message and all contents contain
> information
> from Syntel, Inc. which may be privileged, confidential or otherwise
> protected from disclosure. The information is intended to be for the
> addressee only. If you are not the addressee, any disclosure, copy,
> distribution or use of the contents of this message is prohibited.  If you
> have received this electronic message in error, please notify the sender
> immediately and destroy the original message and all copies.
> 
> 
> -----------------------------------------------------------
> 
> To stop getting this e-mail, or change how often it arrives, go to your
> E-mail Settings.
> http://groups.msn.com/BDOTNET/_emailsettings.msnw
> 
> Need help? If you've forgotten your password, please go to Passport Member
> Services.
> http://groups.msn.com/_passportredir.msnw?ppmprop=help
> 
> For other questions or feedback, go to our Contact Us page.
> http://groups.msn.com/contact
> 
> If you do not want to receive future e-mail from this MSN group, or if you
> received this message by mistake, please click the "Remove" link below. On
> the pre-addressed e-mail message that opens, simply click "Send". Your
> e-mail address will be deleted from this group's mailing list.
> mailto:[EMAIL PROTECTED]
> 
____________________________________________
Confidential:  This electronic message and all contents contain information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited.  If you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to