Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
AnswerRe: Nested Procedure Pin
Pete O'Hanlon22-Aug-10 3:33
mvePete O'Hanlon22-Aug-10 3:33 
QuestionArrayList into ViewState Pin
treuveni22-Aug-10 0:39
treuveni22-Aug-10 0:39 
Hi,

I'm trying to populate viewState with ArrayList like this-

ArrayList list = ConvertDataTableToArrayList(dt);<br />
        ViewState["QueryList"] = list;<br />
<br />
public ArrayList ConvertDataTableToArrayList(DataTable st)<br />
    {<br />
        ArrayList query = new ArrayList(dt.Rows.Count);<br />
        foreach (DataRow row in dt.Rows)<br />
        {<br />
            query.Add(row);<br />
        }<br />
        return query;<br />
<br />
    }<br />

But i'm getting this error-
Type 'System.Data.DataRow' in Assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable

How can i need to solve it?

10x
AnswerRe: ArrayList into ViewState Pin
treuveni22-Aug-10 1:59
treuveni22-Aug-10 1:59 
AnswerRe: ArrayList into ViewState Pin
Shani Natav22-Aug-10 2:23
Shani Natav22-Aug-10 2:23 
GeneralRe: ArrayList into ViewState Pin
Not Active22-Aug-10 3:05
mentorNot Active22-Aug-10 3:05 
AnswerRe: ArrayList into ViewState Pin
Not Active22-Aug-10 3:02
mentorNot Active22-Aug-10 3:02 
AnswerRe: ArrayList into ViewState [modified] Pin
Vivek H23-Aug-10 3:28
Vivek H23-Aug-10 3:28 
QuestionHow to find the maximize & minimum points from List<Point> ? Pin
Yanshof21-Aug-10 22:37
Yanshof21-Aug-10 22:37 
AnswerRe: How to find the maximize & minimum points from List ? Pin
Luc Pattyn21-Aug-10 23:17
sitebuilderLuc Pattyn21-Aug-10 23:17 
GeneralRe: How to find the maximize & minimum points from List ? Pin
Yanshof21-Aug-10 23:21
Yanshof21-Aug-10 23:21 
GeneralRe: How to find the maximize & minimum points from List ? Pin
Luc Pattyn21-Aug-10 23:36
sitebuilderLuc Pattyn21-Aug-10 23:36 
GeneralRe: How to find the maximize & minimum points from List ? Pin
OriginalGriff21-Aug-10 23:37
mveOriginalGriff21-Aug-10 23:37 
AnswerRe: How to find the maximize & minimum points from List ? Pin
Eddy Vluggen22-Aug-10 0:48
professionalEddy Vluggen22-Aug-10 0:48 
GeneralRe: How to find the maximize & minimum points from List ? Pin
Luc Pattyn22-Aug-10 8:53
sitebuilderLuc Pattyn22-Aug-10 8:53 
GeneralRe: How to find the maximize & minimum points from List ? Pin
Eddy Vluggen22-Aug-10 9:51
professionalEddy Vluggen22-Aug-10 9:51 
AnswerRe: How to find the maximize & minimum points from List ? [modified] Pin
cechode22-Aug-10 10:08
cechode22-Aug-10 10:08 
GeneralRe: How to find the maximize & minimum points from List ? Pin
harold aptroot22-Aug-10 10:33
harold aptroot22-Aug-10 10:33 
GeneralRe: How to find the maximize & minimum points from List ? Pin
cechode22-Aug-10 10:42
cechode22-Aug-10 10:42 
Questionmoving a rectangle with in a pannel Pin
prasadbuddhika21-Aug-10 21:36
prasadbuddhika21-Aug-10 21:36 
AnswerRe: moving a rectangle with in a pannel Pin
OriginalGriff21-Aug-10 22:07
mveOriginalGriff21-Aug-10 22:07 
AnswerRe: moving a rectangle with in a pannel Pin
Luc Pattyn21-Aug-10 23:18
sitebuilderLuc Pattyn21-Aug-10 23:18 
QuestionHas anyone make the decorator pattern working in c# ? Pin
588321-Aug-10 16:24
588321-Aug-10 16:24 
AnswerRe: Has anyone make the decorator pattern working in c# ? Pin
Not Active21-Aug-10 16:42
mentorNot Active21-Aug-10 16:42 
AnswerRe: Has anyone make the decorator pattern working in c# ? Pin
Pete O'Hanlon21-Aug-10 21:24
mvePete O'Hanlon21-Aug-10 21:24 
AnswerRe: Has anyone make the decorator pattern working in c# ? Pin
Shani Natav22-Aug-10 2:26
Shani Natav22-Aug-10 2:26 

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.