Click here to Skip to main content
15,904,415 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionplease help Pin
seemamltn13-Aug-07 17:44
seemamltn13-Aug-07 17:44 
AnswerRe: please help Pin
Michael Sync13-Aug-07 20:03
Michael Sync13-Aug-07 20:03 
AnswerRe: please help Pin
neerubee13-Aug-07 20:46
neerubee13-Aug-07 20:46 
AnswerBAD USER! Pin
leckey14-Aug-07 4:59
leckey14-Aug-07 4:59 
Questionsvg mapping using asp.net??? Pin
mmm!@#13-Aug-07 17:16
mmm!@#13-Aug-07 17:16 
Questionhow to access the checkbox control in nested gridview Pin
SharonRao13-Aug-07 15:03
SharonRao13-Aug-07 15:03 
QuestionImages Pin
seemamltn13-Aug-07 14:17
seemamltn13-Aug-07 14:17 
QuestionUnable to cast object of type 'System.DBNull' to type 'System.Byte[]'. Pin
Nadia Monalisa13-Aug-07 11:31
Nadia Monalisa13-Aug-07 11:31 
Hi,

I have developed a custom server control for .NET Framework 2.0. The server control has a property named BinaryData of type byte[]. I marked this property to be data bindable. Now, I have varbinary(Max) type of field in my SQL Database and I have used SQLDataSource and bound this varbinary(Max) field with the property BinaryData (byte[]) of my control. It is working fine as long as the data value is not NULL. Now, In my control, I have handled the NULL value so that no Exception is thrown. Still, when I bind this property using the SQLDataSource, I get Error "Unable to cast object of type 'System.DBNull' to type 'System.Byte[]'." I am not sure if I can do anything to stop this erro within my control. If it is not possible from the control, then what is the workaround that I can do in my ASPX page in order to stop this error ?

Thanks a lot in advance.


AnswerRe: Unable to cast object of type 'System.DBNull' to type 'System.Byte[]'. Pin
Michael Sync13-Aug-07 15:40
Michael Sync13-Aug-07 15:40 
GeneralRe: Unable to cast object of type 'System.DBNull' to type 'System.Byte[]'. Pin
Nadia Monalisa13-Aug-07 17:09
Nadia Monalisa13-Aug-07 17:09 
GeneralRe: Unable to cast object of type 'System.DBNull' to type 'System.Byte[]'. Pin
Michael Sync13-Aug-07 17:44
Michael Sync13-Aug-07 17:44 
GeneralRe: Unable to cast object of type 'System.DBNull' to type 'System.Byte[]'. Pin
Nadia Monalisa13-Aug-07 23:51
Nadia Monalisa13-Aug-07 23:51 
GeneralRe: Unable to cast object of type 'System.DBNull' to type 'System.Byte[]'. Pin
Member 766318817-Aug-11 8:00
Member 766318817-Aug-11 8:00 
QuestionDatagrid help Pin
Ridge Howison13-Aug-07 10:48
Ridge Howison13-Aug-07 10:48 
AnswerRe: Datagrid help Pin
Fred_Smith13-Aug-07 12:39
Fred_Smith13-Aug-07 12:39 
QuestionAccess Asp.net control from client side javascript Pin
Ali Rafiee13-Aug-07 9:28
Ali Rafiee13-Aug-07 9:28 
QuestionRadioButtonList and Hover Balloon Pin
janetb9913-Aug-07 9:22
janetb9913-Aug-07 9:22 
AnswerRe: RadioButtonList and Hover Balloon Pin
N a v a n e e t h13-Aug-07 21:05
N a v a n e e t h13-Aug-07 21:05 
QuestionRecursion Pin
seemamltn13-Aug-07 8:11
seemamltn13-Aug-07 8:11 
AnswerRe: Recursion Pin
Christian Graus13-Aug-07 8:21
protectorChristian Graus13-Aug-07 8:21 
QuestionCreating a pager application help needed Pin
ski_freak13-Aug-07 7:55
ski_freak13-Aug-07 7:55 
AnswerRe: Creating a pager application help needed Pin
ToddHileHoffer13-Aug-07 8:09
ToddHileHoffer13-Aug-07 8:09 
QuestionPersist Gridview Data Pin
kjosh13-Aug-07 6:33
kjosh13-Aug-07 6:33 
AnswerRe: Persist Gridview Data Pin
ToddHileHoffer13-Aug-07 7:55
ToddHileHoffer13-Aug-07 7:55 
GeneralRe: Persist Gridview Data Pin
kjosh14-Aug-07 3:36
kjosh14-Aug-07 3:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.