Click here to Skip to main content
15,886,199 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRead only property Related Question! Pin
mr_muskurahat17-Dec-08 19:30
mr_muskurahat17-Dec-08 19:30 
AnswerRe: Read only property Related Question! Pin
Abhijit Jana17-Dec-08 19:38
professionalAbhijit Jana17-Dec-08 19:38 
AnswerRe: Read only property Related Question! Pin
Brij17-Dec-08 19:42
mentorBrij17-Dec-08 19:42 
GeneralRe: Read only property Related Question! Pin
mr_muskurahat17-Dec-08 20:47
mr_muskurahat17-Dec-08 20:47 
Questiondisplay image to datalist Pin
roshid17-Dec-08 19:27
roshid17-Dec-08 19:27 
AnswerRe: display image to datalist Pin
Brij17-Dec-08 19:35
mentorBrij17-Dec-08 19:35 
AnswerRe: display image to datalist Pin
N a v a n e e t h17-Dec-08 19:52
N a v a n e e t h17-Dec-08 19:52 
GeneralRe: display image to datalist Pin
roshid17-Dec-08 20:35
roshid17-Dec-08 20:35 
I used this code for datalist page load-frmCheck.aspx


clsSqlHelp objHelp = new clsSqlHelp();
clsBllChek objBllCheck = new clsBllChek();
string imggrabFlag = "PF";
protected void Page_Load(object sender, EventArgs e)
{
objBllCheck.comboFill(cmbProduct);
//objBllCheck.DataListFill(dlProduct);
DatalistFill();

}
protected void btnSearch_Click(object sender, EventArgs e)
{

}
public void DatalistFill()
{
objHelp.openConnection();
DataSet objDs = new DataSet();
SqlDataAdapter objDa;
string strSql;
//strSql = "select imgId,imgData,imgTitle from checktabl";
strSql = "select prd_id,name,logo,logo_Length from Edms_Product_Mstr";
objDa = new SqlDataAdapter(strSql, objHelp.dbCon);
objDa.Fill(objDs);
objDs.Tables[0].Columns.Add("imgFile");
foreach (DataRow dt in objDs.Tables[0].Rows)
{

dt["imgFile"] = ("imgGrab.aspx?id=" + dt["prd_id"] + "&flag=" + imggrabFlag);
int idc = Convert.ToInt32(dt["prd_id"]);
}
dlProduct.DataSource = objDs;
dlProduct.DataBind();
objHelp.dbCon.Close();
}
public string FormatURL(object strArgument)
{
int id = Convert.ToInt32(strArgument.ToString());
//return ("imgGrab.aspx?id=" + Convert.ToInt32(strArgument.ToString()));
return ("imgGrab.aspx?id=" + Convert.ToInt32(strArgument.ToString()) + "&flag=" + imggrabFlag);
}

2 also i used an another page imgGrab and write the code below


protected void Page_Load(object sender, EventArgs e)
{
objHelp.openConnection();
int id = Convert.ToInt32(Request.QueryString["id"]);
DataSet ds = new DataSet();
SqlDataAdapter da;
byte[] arrContent;
DataRow dr;
string strSql="";

if (Request.QueryString["flag"].ToString() == "PF")
{
strSql = "Select * from edms_product_mstr Where prd_id='" + Request.QueryString["id"] + "'";
da = new SqlDataAdapter(strSql, objHelp.dbCon);
da.Fill(ds);
dr = ds.Tables[0].Rows[0];
arrContent = (byte[])ds.Tables[0].Rows[0][9];
string conType = ds.Tables[0].Rows[0][13].ToString();
Response.ContentType = conType;
Response.OutputStream.Write(arrContent, 0, int.Parse(ds.Tables[0].Rows[0][11].ToString()));
Response.End();
}

}
it is possible,but now i want to display image from datalist using single aspx page
AnswerRe: display image to datalist Pin
Nishant Singh17-Dec-08 20:06
Nishant Singh17-Dec-08 20:06 
Questioncalling an exe file Pin
venkata saibabu17-Dec-08 19:27
venkata saibabu17-Dec-08 19:27 
AnswerRe: calling an exe file Pin
Brij17-Dec-08 19:38
mentorBrij17-Dec-08 19:38 
GeneralRe: calling an exe file Pin
N a v a n e e t h17-Dec-08 19:54
N a v a n e e t h17-Dec-08 19:54 
GeneralRe: calling an exe file Pin
Brij17-Dec-08 20:05
mentorBrij17-Dec-08 20:05 
GeneralRe: calling an exe file Pin
Christian Graus17-Dec-08 22:53
protectorChristian Graus17-Dec-08 22:53 
AnswerRe: calling an exe file Pin
Abhijit Jana17-Dec-08 19:44
professionalAbhijit Jana17-Dec-08 19:44 
QuestionHow to open link in New Tab in the Main browser Pin
VanithaVasu17-Dec-08 19:25
VanithaVasu17-Dec-08 19:25 
AnswerRe: How to open link in New Tab in the Main browser Pin
Vimalsoft(Pty) Ltd17-Dec-08 19:50
professionalVimalsoft(Pty) Ltd17-Dec-08 19:50 
Questionhelp me if u know answer Pin
venkata saibabu17-Dec-08 19:19
venkata saibabu17-Dec-08 19:19 
AnswerRe: help me if u know answer Pin
Brij17-Dec-08 19:28
mentorBrij17-Dec-08 19:28 
AnswerRe: help me if u know answer Pin
Vimalsoft(Pty) Ltd17-Dec-08 19:34
professionalVimalsoft(Pty) Ltd17-Dec-08 19:34 
QuestionHow to make a hierarchy tabler? Pin
meki_211817-Dec-08 19:07
meki_211817-Dec-08 19:07 
AnswerRe: How to make a hierarchy tabler? Pin
Christian Graus17-Dec-08 19:10
protectorChristian Graus17-Dec-08 19:10 
GeneralRe: How to make a hierarchy tabler? Pin
meki_211817-Dec-08 19:44
meki_211817-Dec-08 19:44 
AnswerRe: How to make a hierarchy tabler? Pin
Brij17-Dec-08 19:11
mentorBrij17-Dec-08 19:11 
GeneralRe: How to make a hierarchy tabler? Pin
meki_211817-Dec-08 19:46
meki_211817-Dec-08 19:46 

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.