Click here to Skip to main content
15,912,400 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralCalendar Popup for master pages in ASP.Net using javascript Pin
sivaraman_sankaranarayanan14-Dec-07 23:35
sivaraman_sankaranarayanan14-Dec-07 23:35 
GeneralRe: Calendar Popup for master pages in ASP.Net using javascript Pin
Michael Sync15-Dec-07 4:21
Michael Sync15-Dec-07 4:21 
QuestionHow to make the Next and button of a WizardStep Invisible Pin
Rocky#14-Dec-07 22:51
Rocky#14-Dec-07 22:51 
GeneralCreate a comparison chart Pin
SUDHAKAR PALLAM14-Dec-07 21:53
SUDHAKAR PALLAM14-Dec-07 21:53 
GeneralRe: Create a comparison chart Pin
pmarfleet14-Dec-07 22:13
pmarfleet14-Dec-07 22:13 
GeneralRe: Create a comparison chart [modified] Pin
SUDHAKAR PALLAM14-Dec-07 22:32
SUDHAKAR PALLAM14-Dec-07 22:32 
GeneralRe: Create a comparison chart Pin
Bassam Saoud14-Dec-07 22:29
Bassam Saoud14-Dec-07 22:29 
QuestionHow to Display Image in Gridview from Sqlserver 2005 in C# Pin
mrgaddam14-Dec-07 21:41
mrgaddam14-Dec-07 21:41 
Hi,
This is from chandrakanth.
Actullay i am able to upload the picture into Sqlserver2005.
But i can not able to get the picture.
And i want to show the picture in Gridview.
can any one tell me what are all things have to change in my code.
here the code is

protected void btnRetrive_Click(object sender, EventArgs e)
{
IDataReader objReader;
SqlDataAdapter da = new SqlDataAdapter();
DataTable dt = new DataTable();
objReader= KF.Search.GetUserIdImages(txtuid.Text);
dt.Load(objReader);
gdvImagesRetrive.DataSource = dt;
gdvImagesRetrive.DataBind();

}

GetUserIdImages ------ that metyhod code is....


public static IDataReader GetUserIdImages(string strImageUserId)
{
try
{
byte[] imagestr;
Database objDataBase = DatabaseFactory.CreateDatabase();
DbCommand objDbCommand = objDataBase.GetStoredProcCommand("STP_KF_Images_Retrive");
objDataBase.AddInParameter(objDbCommand, "@UserId", DbType.String, strImageUserId);
IDataReader objDataReader;
objDataReader = objDataBase.ExecuteReader(objDbCommand);

while (objDataReader.Read())
{
imagestr = (byte[])objDataReader.GetValue(1);
}
return objDataReader;
objDataReader.Close();
}
catch (Exception ex)
{
throw new Exception(ex.Message.ToString());
}



}

can any one tell me what are all things sholud change.

Thanks and Regards
Chandrakanth
Chandrakanth

AnswerRe: How to Display Image in Gridview from Sqlserver 2005 in C# Pin
Bassam Saoud14-Dec-07 21:56
Bassam Saoud14-Dec-07 21:56 
QuestionHow to Display Image in Gridview from Sqlserver 2005 in C# Pin
mrgaddam14-Dec-07 21:40
mrgaddam14-Dec-07 21:40 
AnswerRe: How to Display Image in Gridview from Sqlserver 2005 in C# Pin
Bassam Saoud14-Dec-07 21:58
Bassam Saoud14-Dec-07 21:58 
GeneralAuto fill textbox Pin
Member 387988114-Dec-07 20:20
Member 387988114-Dec-07 20:20 
GeneralGrid Binding Problem Pin
SreejithAchutan14-Dec-07 19:49
SreejithAchutan14-Dec-07 19:49 
GeneralRe: Grid Binding Problem Pin
Bassam Saoud14-Dec-07 22:03
Bassam Saoud14-Dec-07 22:03 
Questionhow can i fill dropdownlist using AJAX Pin
koolprasad200314-Dec-07 19:39
professionalkoolprasad200314-Dec-07 19:39 
AnswerRe: how can i fill dropdownlist using AJAX Pin
N a v a n e e t h14-Dec-07 19:59
N a v a n e e t h14-Dec-07 19:59 
QuestionHow To Import Excel File to Ms Access Pin
raushan_914-Dec-07 19:01
raushan_914-Dec-07 19:01 
AnswerRe: How To Import Excel File to Ms Access Pin
Christian Graus14-Dec-07 19:04
protectorChristian Graus14-Dec-07 19:04 
GeneralRe: How To Import Excel File to Ms Access Pin
raushan_914-Dec-07 20:12
raushan_914-Dec-07 20:12 
QuestionHow to configure the security in web administration tool? [modified] Pin
hogan.john14-Dec-07 18:51
hogan.john14-Dec-07 18:51 
AnswerRe: How to configure the security in web administration tool? Pin
Bassam Saoud14-Dec-07 22:10
Bassam Saoud14-Dec-07 22:10 
GeneralRe: How to configure the security in web administration tool? Pin
hogan.john14-Dec-07 22:57
hogan.john14-Dec-07 22:57 
GeneralRe: How to configure the security in web administration tool? Pin
Bassam Saoud15-Dec-07 0:49
Bassam Saoud15-Dec-07 0:49 
GeneralRe: How to configure the security in web administration tool? Pin
hogan.john15-Dec-07 4:11
hogan.john15-Dec-07 4:11 
Generalabout video playing Pin
kadkir14-Dec-07 18:25
kadkir14-Dec-07 18:25 

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.