Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
i made a [^] and while i debug in the local server it works fine but while uploading into the server it doesnot show any image from the database... which is dynamically please visit http://sajilobazar.com/[^]
Posted
Comments
OriginalGriff 30-Nov-14 5:23am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
So instead of providing links to your site - which makes it look like spam - show us the code you use to generate the images.
Use the "Improve question" widget to edit your question and provide better information.
[no name] 30-Nov-14 5:32am    
<asp:DataList ID="Dl_products" RepeatColumns="3" RepeatDirection="Horizontal" runat="server">
<itemtemplate>

<div class="pro_left">

<asp:Image ID="img_pro" runat="server" ImageUrl='<%#Eval("pimgPath") %>' /><br />


</div>

<div class="pro_middle">

<asp:Label ID="lbl_pname" runat="server" Text='<%#Eval("pname")%>' CssClass="p_name" /> </br>

<asp:Label ID="lbl_pprice" Text="price: Rs." runat="server" CssClass="plbl" /> <asp:Label ID="Label2" runat="server" Text='<%#Eval("pprice")%>' CssClass="p_price" /><br />
<asp:Label ID="lbl_brand" Text="Brand: " runat="server" CssClass="plbl"/><asp:Label ID="lbl_pbrand" runat="server" Text='<%#Eval("pbrand")%>' /><br />
<asp:Label ID="lbl_date" Text="Updated on: " runat="server" CssClass="plbl"/><asp:Label ID="lbl_pdate" runat="server" Text='<%#Eval("pdate")%>' /><br />
<br>
<asp:Label ID="lbl_desc" Text="Specifications" runat="server" CssClass="plbl" /></br />


<asp:Label runat="server" CssClass="specification" Text='<%#Eval("pdescription").ToString().Replace(Environment.NewLine, "<br>").Replace(" "," ")%>'/><br>

</div>


OriginalGriff 30-Nov-14 5:47am    
Now, what did I say about the "Improve question" widget?
dump that lot, edit your question and paste the code into that so it is in pre tags and is readable instead of partially obeyed but our browsers...
And add the c# side of things as well?
[no name] 30-Nov-14 6:13am    
OriginalGriff... how dare u are... i am asking my problem but u are showing ur angerness.. just chill out i am asking my problem and it is not showing image while locally it works fine my c# code is as below if u have a solution then kindly help me ..
BLLOrder bllorder = new BLLOrder();
string gstr;
protected void Page_Load(object sender, EventArgs e)
{
string str =Server.UrlEncode(Request.QueryString["productid"]);
gstr = str;
binddata_products();

}

protected void binddata_products()
{
string mystr = ConfigurationManager.ConnectionStrings["str"].ConnectionString;
SqlConnection con = new SqlConnection(mystr);
con.Open();
SqlCommand cmd = new SqlCommand("select * from product where pid='" + gstr + "'", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
Dl_products.DataSource = ds;
Dl_products.DataBind();
con.Close();
con.Dispose();
}

protected void btn_order(object sender, EventArgs e)
{
string dat = DateTime.Now.ToString();
int i = bllorder.orderByPhn(tb_name.Text, tb_email.Text, tb_phone.Text, gstr, dat);
//lbl_msg.Visible = true;
btn_order1.Text = "order success !";
btn_order1.CssClass = "btn btn-lg btn-block btn-primary btn_rad";
btn_order1.Enabled = false;
btn_order1.OnClientClick = null;
clearorder();
}

OriginalGriff 30-Nov-14 7:02am    
No anger here!
Think about it - when you paste your code into a comment, it:
1) Doesn't get formatted - so it's hard to read.
2) Doesn't engage the "auto code highlighter" - so HTML codes get examined and (if possible) obeyed instead of displayed.

Just look at you first comment and you will see the results of that.

When you edit your question as I said in the first place these things do work: so we get to see your code in a formatted and readable format, with all HTML code readable instead of obeyed by the browser!
Now, if you want us to help you, we have to be able to see what your code actually looks like: because there are hundreds of different ways you *could* be doing something and without the code we can't tell which...

So chill out, stop seeing offence where there is none, and try to consider things from the POV of the person trying to answer the question? :laugh:

1 solution

Path of Image may be wrong or image name may be incorrect. please check these.
 
Share this answer
 
Comments
[no name] 30-Nov-14 23:04pm    
if path is wrong image is unable to uploaded... i think the path is not wrong....... locally it is fine but after uploading it into the server it doesnot show image what should i do??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900