Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What should I do for NULLs?
Message
From
15/07/2008 19:37:51
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01331280
Message ID:
01331531
Views:
8
>Also it doesn't even go there, it gives me error right here
><div id="info7" class="cl dn">
>                                    <MembInfo:MembershipInfo ID="MembershipInfoRegular" runat="server"
>                                    BillQuaterly ='< %# Bind("BillQuaterly") % >' IsMember ='< %# Bind("IsMember") % >'
>                                    PaymentMethod='< %# Bind("PaymentMethod") % >' StartDate ='< %# Bind("StartDate") % >' />
>                                </div>


Ah, well then ... I won't be able to help you ... I don't know anything about ASP.NET, and if your error is occuring there, then the code I suggested in the code-behind is probably not gonna do much good. That syntax you posted is all Greek to me. <g>

~~Bonnie





>I'm still getting invalid cast exception.
>Here is what I've tried:
>
>
>[Bindable(true, BindingDirection.TwoWay), Category("User-Defined"), Description("Membership Begin Date") ]
>    public DateTime? StartDate
>    {
>        get
>        {
>            return Convert.ToDateTime(this.txtMembershipStartDate.Text) ;
>        }
>        set
>        {
>            if (Convert.IsDBNull(value) == true)
>                this.txtMembershipStartDate.Text = "";
>            else
>                this.txtMembershipStartDate.Text = (Convert.ToDateTime(value)).ToShortDateString() ;
>        }
>    }
>
>Also it doesn't even go there, it gives me error right here
><div id="info7" class="cl dn">
>                                    <MembInfo:MembershipInfo ID="MembershipInfoRegular" runat="server"
>                                    BillQuaterly ='< %# Bind("BillQuaterly") % >' IsMember ='< %# Bind("IsMember") % >'
>                                    PaymentMethod='< %# Bind("PaymentMethod") % >' StartDate ='< %# Bind("StartDate") % >' />
>                                </div>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform