Click here to Skip to main content
15,039,021 members
Home / Discussions / Web Development
   

Web Development

 
Questionwebsite Pin
Member 112090785-Nov-14 4:14
MemberMember 112090785-Nov-14 4:14 
SuggestionRe: website Pin
ZurdoDev5-Nov-14 5:15
professionalZurdoDev5-Nov-14 5:15 
AnswerRe: website Pin
Dominic Burford7-Nov-14 4:57
professionalDominic Burford7-Nov-14 4:57 
QuestionMVC5: DropdownlistFor: How to handle empty data Pin
NarVish4-Nov-14 23:26
MemberNarVish4-Nov-14 23:26 
QuestionMVC 4.5 Noobie Question Pin
Kevin Marois3-Nov-14 19:21
professionalKevin Marois3-Nov-14 19:21 
AnswerRe: MVC 4.5 Noobie Question Pin
Matt U.4-Nov-14 6:53
MemberMatt U.4-Nov-14 6:53 
AnswerRe: MVC 4.5 Noobie Question Pin
Anurag Gandhi30-Nov-14 23:01
professionalAnurag Gandhi30-Nov-14 23:01 
QuestionTHE IMAGE IS NOT DISPLAY CROOS MARK APPEARS ON WEBPAGE Pin
Member 112021843-Nov-14 19:07
MemberMember 112021843-Nov-14 19:07 
CODE IN .ASPX.CS FILE :


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.Drawing;
using System.IO;




public partial class Main_frmIndex : System.Web.UI.Page
{
    CommonBL BL = new CommonBL();
    protected void Page_Load(object sender, EventArgs e)
    {
        AssignData();
    }

    private void AssignData()
    {
        DataSet ds = new DataSet();
        ds = BL.GetDataSet("Select top 2 id,Product_Category,Category_id,Prd_Name,Prd_Pack,Prd_Details,Prd_Indication,PackImage,ProductLogo,pId from tbl_Products Inner join tbl_CategoryMaster On tbl_Products.Category_id = tbl_CategoryMaster.pId where tbl_Products.Active= 1 and tbl_Products.DeletedFlag =0 and tbl_CategoryMaster.Active= 1 and tbl_CategoryMaster.DeletedFlag =0 order by tbl_Products.UpdatedDate desc");
        StringBuilder strShow = new StringBuilder();
        strShow = strShow.AppendLine("<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>");

        for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
        {
            if (i == 0)
            {
                strShow = strShow.AppendLine("<td width='50%' class='rightline'  valign='top' align='left'>");
            }
            else
            {
                strShow = strShow.AppendLine("<td width='50%' valign='top' align='left' class='padl10'>");
            }
            strShow = strShow.AppendLine("<table border='0' width='100%' cellpadding='0' cellspacing='0'>");
            strShow = strShow.AppendLine("<tr><td class='subheader vat padt10'>" + ds.Tables[0].Rows[i]["Product_Category"] + "</td></tr>");
            strShow = strShow.AppendLine("<tr><td class='padt10'><img src='../Uploads/Products/" + ds.Tables[0].Rows[i]["PackImage"] + "' width='124' height='114' alt='' /></td></tr>");
            //strShow = strShow.AppendLine("<tr><td>" + ds.Tables[0].Rows[i]["Prd_Name"] + "<br/>" + ds.Tables[0].Rows[i]["Prd_Details"] + "<br/></td></tr>");
            strShow = strShow.AppendLine("<tr><td>" + ds.Tables[0].Rows[i]["Prd_Name"] + "</td></tr>");
            strShow = strShow.AppendLine("<tr><td class='padr5 padb15'><a class='more' href='../Main/frmProductDetails.aspx?id=" + ds.Tables[0].Rows[i]["Id"].ToString() + "'>more...</a></td></tr></table></td>");
        }
        strShow.AppendLine("</tr></table>");


        lblShow.InnerHtml = strShow.ToString();
    }
}

SuggestionRe: THE IMAGE IS NOT DISPLAY CROOS MARK APPEARS ON WEBPAGE Pin
Richard MacCutchan3-Nov-14 21:29
mveRichard MacCutchan3-Nov-14 21:29 
AnswerRe: THE IMAGE IS NOT DISPLAY CROOS MARK APPEARS ON WEBPAGE Pin
ZurdoDev4-Nov-14 8:21
professionalZurdoDev4-Nov-14 8:21 
QuestionCSS Problem Pin
Kevin Marois3-Nov-14 10:41
professionalKevin Marois3-Nov-14 10:41 
AnswerRe: CSS Problem Pin
Richard Deeming3-Nov-14 11:30
mveRichard Deeming3-Nov-14 11:30 
GeneralRe: CSS Problem Pin
Kevin Marois3-Nov-14 11:49
professionalKevin Marois3-Nov-14 11:49 
AnswerRe: CSS Problem Pin
Kornfeld Eliyahu Peter3-Nov-14 21:10
professionalKornfeld Eliyahu Peter3-Nov-14 21:10 
GeneralRe: CSS Problem Pin
Richard Deeming3-Nov-14 23:19
mveRichard Deeming3-Nov-14 23:19 
QuestionASP.Net MVC 5 - First Project Error Pin
Kevin Marois3-Nov-14 5:51
professionalKevin Marois3-Nov-14 5:51 
AnswerRe: ASP.Net MVC 5 - First Project Error Pin
Kevin Marois3-Nov-14 6:02
professionalKevin Marois3-Nov-14 6:02 
GeneralHandlings rows in Datatables Pin
adekunbi29-Oct-14 3:43
Memberadekunbi29-Oct-14 3:43 
SuggestionRe: Handlings rows in Datatables Pin
ZurdoDev29-Oct-14 5:46
professionalZurdoDev29-Oct-14 5:46 
GeneralRe: Handlings rows in Datatables Pin
adekunbi29-Oct-14 6:01
Memberadekunbi29-Oct-14 6:01 
GeneralRe: Handlings rows in Datatables Pin
ZurdoDev29-Oct-14 6:04
professionalZurdoDev29-Oct-14 6:04 
GeneralRe: Handlings rows in Datatables Pin
adekunbi29-Oct-14 23:40
Memberadekunbi29-Oct-14 23:40 
QuestionRe: Handlings rows in Datatables Pin
ZurdoDev30-Oct-14 1:37
professionalZurdoDev30-Oct-14 1:37 
AnswerRe: Handlings rows in Datatables Pin
adekunbi30-Oct-14 1:41
Memberadekunbi30-Oct-14 1:41 
GeneralRe: Handlings rows in Datatables Pin
ZurdoDev30-Oct-14 1:52
professionalZurdoDev30-Oct-14 1:52 

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.