Click here to Skip to main content
15,905,028 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralOWC10 component Pie Chart Values Overlapping Pin
Kumaran21cen4-Apr-08 1:16
Kumaran21cen4-Apr-08 1:16 
GeneralButton Doing What It's Meant To :( Pin
Reelix4-Apr-08 0:42
Reelix4-Apr-08 0:42 
GeneralRe: Button Doing What It's Meant To :( Pin
Paddy Boyd4-Apr-08 0:43
Paddy Boyd4-Apr-08 0:43 
QuestionHow to copy one datareader to another Pin
sjs4u4-Apr-08 0:40
sjs4u4-Apr-08 0:40 
AnswerRe: How to copy one datareader to another Pin
Paddy Boyd4-Apr-08 0:44
Paddy Boyd4-Apr-08 0:44 
GeneralRe: How to copy one datareader to another Pin
sjs4u4-Apr-08 1:11
sjs4u4-Apr-08 1:11 
AnswerRe: How to copy one datareader to another Pin
Declan Bright4-Apr-08 0:49
Declan Bright4-Apr-08 0:49 
GeneralRe: How to copy one datareader to another Pin
sjs4u4-Apr-08 1:09
sjs4u4-Apr-08 1:09 
Thanks for the information.But
The Problem is like below

I am binding dr1 to datalist in which image will be there.

I am fetching one by one record from the database where while loop is there and then depending upon that value it taken from the database as dr1 and then I am binding to the datalist dgBindImage.

But Datalist which contains images that display last image.
That overwrite the previous one.

So I want to add or copy dr1 to another dr2 so that direct whole dr2 can be bind to datalist.

cmd = new SqlCommand("SELECT * from Product_price where category_id=" + CatID, cn);
cn.Open();
dr = cmd.ExecuteReader();

if (dr.HasRows)
{
while (dr.Read())
{
string PID = dr["product_id"].ToString();
cmd1 = new SqlCommand("SELECT * from t_Product where product_id=" + PID, cn1);
cn1.Open();
dr1 = cmd1.ExecuteReader();

SqlDataReader myReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection);

dr1.Close();
cn1.Close();
}
dgBindImage.DataSource = dr1;//dgBindImage is Datalist
dgBindImage.DataBind();

}
GeneralRe: How to copy one datareader to another Pin
Declan Bright4-Apr-08 1:21
Declan Bright4-Apr-08 1:21 
GeneralSplitter control for web form Pin
A.Muthunagai4-Apr-08 0:20
A.Muthunagai4-Apr-08 0:20 
GeneralRe: Splitter control for web form Pin
Declan Bright4-Apr-08 2:42
Declan Bright4-Apr-08 2:42 
GeneralRe: Splitter control for web form Pin
A.Muthunagai4-Apr-08 3:36
A.Muthunagai4-Apr-08 3:36 
GeneralRe: Splitter control for web form Pin
Declan Bright4-Apr-08 3:47
Declan Bright4-Apr-08 3:47 
Generalvisible column girdview Pin
AnhTin3-Apr-08 23:09
AnhTin3-Apr-08 23:09 
Questionhow to solve an unhandled exception occurred while binding datasource to the radscheduler Pin
gayatrilaxmi3-Apr-08 23:06
gayatrilaxmi3-Apr-08 23:06 
GeneralError:-There is already an open DataReader associated with this Command which must be closed first. Pin
sjs4u3-Apr-08 23:04
sjs4u3-Apr-08 23:04 
GeneralRe: Error:-There is already an open DataReader associated with this Command which must be closed first. Pin
Declan Bright3-Apr-08 23:18
Declan Bright3-Apr-08 23:18 
GeneralRe: Error:-There is already an open DataReader associated with this Command which must be closed first. Pin
sjs4u3-Apr-08 23:46
sjs4u3-Apr-08 23:46 
GeneralRe: Error:-There is already an open DataReader associated with this Command which must be closed first. Pin
Declan Bright3-Apr-08 23:59
Declan Bright3-Apr-08 23:59 
GeneralUltrawebgrid Pin
venkat aithagoni3-Apr-08 22:55
venkat aithagoni3-Apr-08 22:55 
GeneralRe: Ultrawebgrid Pin
Declan Bright3-Apr-08 23:54
Declan Bright3-Apr-08 23:54 
GeneralRe: Ultrawebgrid Pin
venkat aithagoni4-Apr-08 0:16
venkat aithagoni4-Apr-08 0:16 
GeneralRe: Ultrawebgrid Pin
Pete O'Hanlon3-Apr-08 23:55
mvePete O'Hanlon3-Apr-08 23:55 
GeneralHP 6767 NoteBoOk sql sERVER 2005 Pin
Piyush Vardhan Singh3-Apr-08 22:29
Piyush Vardhan Singh3-Apr-08 22:29 
GeneralRe: HP 6767 NoteBoOk sql sERVER 2005 Pin
Declan Bright3-Apr-08 23:21
Declan Bright3-Apr-08 23:21 

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.