Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: I need to change to Array Pin
Gareth H27-Jan-08 22:36
Gareth H27-Jan-08 22:36 
GeneralRe: I need to change to Array Pin
Kyle Rozendo27-Jan-08 23:32
Kyle Rozendo27-Jan-08 23:32 
GeneralRe: I need to change to Array Pin
Alex50128-Jan-08 7:13
Alex50128-Jan-08 7:13 
GeneralRe: I need to change to Array Pin
PIEBALDconsult28-Jan-08 9:37
mvePIEBALDconsult28-Jan-08 9:37 
GeneralRe: I need to change to Array Pin
Alex50130-Jan-08 17:56
Alex50130-Jan-08 17:56 
GeneralRe: I need to change to Array Pin
Jeeva Jose27-Jan-08 21:12
Jeeva Jose27-Jan-08 21:12 
GeneralRe: I need to change to Array Pin
PIEBALDconsult28-Jan-08 9:35
mvePIEBALDconsult28-Jan-08 9:35 
Questioninterface implementation Pin
avvaru.murali27-Jan-08 20:12
avvaru.murali27-Jan-08 20:12 
Hi,
This is my interface
DataTable FindAll();<br />


implementation is
<br />
 public DataTable FindAll()<br />
        {  String query = "SELECT * FROM Media";<br />
            DataTable dt = util.DatabaseManager.ExecuteQuery(ConnectionString, query, "outdoordata");<br />
            if (dt.Rows.Count == 0)<br />
            {<br />
                return null;<br />
            }<br />
            return new media(dt.rows[0]);------it is showing error "cannot implicitly convert media to system.data.datatable.<br />
}<br />
Here is media is class which done the following
<br />
public class media<br />
{<br />
public Media(DataRow dr)<br />
        {<br />
            if (dr["media_type_id"] != DBNull.Value)<br />
            {<br />
                this.media_type_id = Int32.Parse(dr["media_type_id"].ToString());<br />
            }<br />
            if (dr["description"] != DBNull.Value)<br />
            {<br />
                this.description = dr["description"].ToString();<br />
            }<br />
            if (dr["width"] != DBNull.Value)<br />
            {<br />
                this.width = Double.Parse(dr["width"].ToString());<br />
}<br />
<br />
}<br />
It is giving error is "cannot implicitly convert media to system.data.datable

murali krishna

GeneralRe: interface implementation Pin
Mircea Puiu27-Jan-08 20:53
Mircea Puiu27-Jan-08 20:53 
GeneralRegarding Firebird Pin
Praveen02927-Jan-08 20:08
Praveen02927-Jan-08 20:08 
QuestionFlickering of listview when updated Pin
Sushma K27-Jan-08 20:03
Sushma K27-Jan-08 20:03 
GeneralRe: Flickering of listview when updated Pin
Mircea Puiu27-Jan-08 20:49
Mircea Puiu27-Jan-08 20:49 
GeneralRe: Flickering of listview when updated Pin
Sushma K27-Jan-08 22:55
Sushma K27-Jan-08 22:55 
GeneralRe: Flickering of listview when updated Pin
LongRange.Shooter28-Jan-08 7:58
LongRange.Shooter28-Jan-08 7:58 
GeneralC#&Fortran mixed language problem Pin
raulisme27-Jan-08 19:54
raulisme27-Jan-08 19:54 
AnswerRe: C#&Fortran mixed language problem Pin
LongRange.Shooter28-Jan-08 9:03
LongRange.Shooter28-Jan-08 9:03 
GeneralRe: C#&Fortran mixed language problem Pin
raulisme28-Jan-08 18:18
raulisme28-Jan-08 18:18 
GeneralRe: C#&Fortran mixed language problem Pin
LongRange.Shooter30-Jan-08 14:23
LongRange.Shooter30-Jan-08 14:23 
Generalautorefresh only datalist Pin
razanabanu27-Jan-08 19:35
razanabanu27-Jan-08 19:35 
GeneralRe: autorefresh only datalist Pin
N a v a n e e t h27-Jan-08 19:46
N a v a n e e t h27-Jan-08 19:46 
GeneralRe: autorefresh only datalist Pin
Pete O'Hanlon28-Jan-08 0:26
mvePete O'Hanlon28-Jan-08 0:26 
Questionhow to disable Close button of windows form using C#.Net Pin
koolprasad200327-Jan-08 18:44
professionalkoolprasad200327-Jan-08 18:44 
AnswerRe: how to disable Close button of windows form using C#.Net Pin
Gopal.S27-Jan-08 19:16
Gopal.S27-Jan-08 19:16 
AnswerRe: how to disable Close button of windows form using C#.Net Pin
N a v a n e e t h27-Jan-08 19:41
N a v a n e e t h27-Jan-08 19:41 
GeneralType File Pin
T.EDY27-Jan-08 16:55
T.EDY27-Jan-08 16:55 

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.