Click here to Skip to main content
15,893,594 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: them error? Pin
pss.srinivasan16-Nov-09 22:39
pss.srinivasan16-Nov-09 22:39 
AnswerRe: them error? Pin
Anurag Gandhi16-Nov-09 22:39
professionalAnurag Gandhi16-Nov-09 22:39 
AnswerRe: them error? Pin
sashidhar16-Nov-09 22:45
sashidhar16-Nov-09 22:45 
GeneralRe: them error? Pin
pss.srinivasan16-Nov-09 23:40
pss.srinivasan16-Nov-09 23:40 
GeneralRe: them error? Pin
Abhijit Jana16-Nov-09 23:46
professionalAbhijit Jana16-Nov-09 23:46 
GeneralRe: them error? Pin
sashidhar16-Nov-09 23:57
sashidhar16-Nov-09 23:57 
GeneralRe: them error? Pin
Shameel17-Nov-09 4:55
professionalShameel17-Nov-09 4:55 
QuestionSqlDataReader Problem Pin
Amit Patel198516-Nov-09 21:02
Amit Patel198516-Nov-09 21:02 
Hi All,

<br />
<br />
   public MySqlDataReader ExecuteReader(String query)<br />
        {<br />
            MySqlConnection con = new MySqlConnection((connectionString));<br />
<br />
            MySqlCommand cmd = new MySqlCommand(query, con);<br />
<br />
            con.Open();<br />
            <br />
            MySqlDataReader reader =cmd.ExecuteReader();<br />
            //MySqlHelper<br />
            con.Close();<br />
          <br />
            return reader;<br />
        }<br />
<br />


I am returning reader but connction gets close so it become null it is in DAl (Data Access layer) i know it is expected beheviour so how to solve this problem.

thanks and regards,

Amit Patel
AnswerRe: SqlDataReader Problem Pin
Richard MacCutchan16-Nov-09 21:15
mveRichard MacCutchan16-Nov-09 21:15 
AnswerRe: SqlDataReader Problem Pin
Abhishek Sur16-Nov-09 21:18
professionalAbhishek Sur16-Nov-09 21:18 
AnswerRe: SqlDataReader Problem Pin
dan!sh 16-Nov-09 22:10
professional dan!sh 16-Nov-09 22:10 
QuestionEmailing html page Pin
Ersan Ercek16-Nov-09 20:52
Ersan Ercek16-Nov-09 20:52 
AnswerRe: Emailing html page Pin
Abhishek Sur16-Nov-09 21:19
professionalAbhishek Sur16-Nov-09 21:19 
AnswerRe: Emailing html page Pin
sashidhar16-Nov-09 21:23
sashidhar16-Nov-09 21:23 
GeneralRe: Emailing html page Pin
Ersan Ercek16-Nov-09 21:45
Ersan Ercek16-Nov-09 21:45 
QuestionWebService Sessions Pin
Matt Cavanagh16-Nov-09 20:41
Matt Cavanagh16-Nov-09 20:41 
AnswerRe: WebService Sessions Pin
Eduard Keilholz16-Nov-09 22:08
Eduard Keilholz16-Nov-09 22:08 
AnswerRe: WebService Sessions Pin
Abhijit Jana16-Nov-09 23:51
professionalAbhijit Jana16-Nov-09 23:51 
QuestionApply them only in content page. Pin
pss.srinivasan16-Nov-09 20:09
pss.srinivasan16-Nov-09 20:09 
AnswerRe: Apply them only in content page. Pin
Christian Graus16-Nov-09 20:10
protectorChristian Graus16-Nov-09 20:10 
GeneralRe: Apply them only in content page. Pin
pss.srinivasan16-Nov-09 20:12
pss.srinivasan16-Nov-09 20:12 
GeneralRe: Apply them only in content page. [modified] Pin
sashidhar16-Nov-09 20:18
sashidhar16-Nov-09 20:18 
GeneralRe: Apply them only in content page. Pin
pss.srinivasan16-Nov-09 20:30
pss.srinivasan16-Nov-09 20:30 
GeneralRe: Apply them only in content page. Pin
sashidhar16-Nov-09 20:31
sashidhar16-Nov-09 20:31 
AnswerRe: Apply them only in content page. Pin
RajpootRohan16-Nov-09 20:20
professionalRajpootRohan16-Nov-09 20:20 

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.