Click here to Skip to main content
15,919,931 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
Dear Michael,

Thanks a lot for your reply. Actually I am the control developer and I am supplying my control to my client. Now, within my code, i have the property of byte[] type. And this property is databoundable. Now, where can I place your snippet in the code of my control ? I mean, my code has following definition of the byte[] type property,

<br />
1           private byte[] binData;<br />
2    <br />
3            [Bindable(true)]<br />
4            [Category("Data Input fields")]<br />
5            [Localizable(true)]<br />
6            public byte[] BinData<br />
7            {<br />
8                get<br />
9                {<br />
10                   try<br />
11                   {<br />
12                    <br />
13                   }<br />
14                   catch<br />
15                   {<br />
                          binData = null;<br />
16                   }<br />
17   <br />
18                   return binData;<br />
19               }<br />
20               set<br />
21               {<br />
22                   try<br />
23                   {<br />
24                       binData = value;<br />
25                   }<br />
26                   catch<br />
27                   {<br />
28                       binData = null;<br />
29                   }<br />
30   <br />
37               }<br />
38           }<br />
39   



Now, How can I access the datareader of the SQLDataSource or any datasource that has bound this property and override this error message ?

Regards.
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 
QuestionGridview with validation Pin
kjosh13-Aug-07 5:15
kjosh13-Aug-07 5:15 
QuestionAccess parent page controls from Iframe [modified] Pin
rana7813-Aug-07 4:42
rana7813-Aug-07 4:42 

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.