Object cannot be cast from DBNull to other types.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<pre> <asp:HyperLink ID="HLMainPicID" NavigateUrl=<%#"~/Secure/UserProfile.aspx?UserNameID=" +Eval("ProfileID") + "&toprofileid=" + Eval("ProfileID") +
"&fromprofileid=" + (SQLOmegaLoveProvider.GetCurrentUserProfileID() == null ? (object)DBNull.Value : SQLOmegaLoveProvider.GetCurrentUserProfileID().ToString()) %> runat="server
[/code]<hr class="sig Mathieu Alexandre Cupryk www.omegalove.com

View the full article
 
Back
Top