-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b59b564
commit b3924ce
Showing
20 changed files
with
388 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,37 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Data; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.UI; | ||
using System.Web.UI.WebControls; | ||
using BO; | ||
|
||
namespace SKDN.Web.Pages | ||
{ | ||
public partial class du_an : System.Web.UI.Page | ||
{ | ||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
if (!IsPostBack) | ||
{ | ||
DataTable dtHotSubject = ProductHelper.SelectProductByProductTypePaged(4, 1, 1); | ||
if (dtHotSubject != null && dtHotSubject.Rows.Count > 0) | ||
{ | ||
ltrImage.Text = dtHotSubject.Rows[0]["Image"] != null && !string.IsNullOrEmpty(dtHotSubject.Rows[0]["Image"].ToString()) ? dtHotSubject.Rows[0]["Image"].ToString() : string.Empty; | ||
ltrContentProject.Text = dtHotSubject.Rows[0]["ProductDescription"].ToString(); | ||
|
||
DataTable dtData = dtHotSubject.Clone(); | ||
for (int i = 1; i < dtHotSubject.Rows.Count; i++) | ||
{ | ||
dtData.ImportRow(dtHotSubject.Rows[i]); | ||
} | ||
|
||
rptListProject.DataSource = dtData; | ||
rptListProject.DataBind(); | ||
|
||
} | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectDetailAjax.aspx.cs" Inherits="SKDN.Web.ProjectDetailAjax" %> | ||
|
||
<!DOCTYPE html> | ||
|
||
<html xmlns:fb="http://ogp.me/ns/fb#"> | ||
<head runat="server"> | ||
</head> | ||
<body> | ||
<form id="form1" runat="server"> | ||
<div id="fb-root"></div> | ||
<script>(function (d, s, id) { | ||
var js, fjs = d.getElementsByTagName(s)[0]; | ||
if (d.getElementById(id)) return; | ||
js = d.createElement(s); js.id = id; | ||
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=1528142057440204&version=v2.0"; | ||
fjs.parentNode.insertBefore(js, fjs); | ||
}(document, 'script', 'facebook-jssdk'));</script> | ||
<div class="projectContent"> | ||
<div class="col-Content"> | ||
<asp:Literal runat="server" ID="ltrImage"></asp:Literal> | ||
<div class="content-project scrollpanel no4"> | ||
<asp:Literal runat="server" ID="ltrContentProject"></asp:Literal> | ||
</div> | ||
</div> | ||
<div class="col-Comment"> | ||
<div class="comment-wrapper"> | ||
<fb:comments href="<% = Request.Url.DnsSafeHost+ Request.RawUrl%>" width="520" numposts="100" colorscheme="light"></fb:comments> | ||
</div> | ||
</div> | ||
<div class="clearfix"></div> | ||
</div> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Data; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.UI; | ||
using System.Web.UI.WebControls; | ||
using BO; | ||
|
||
namespace SKDN.Web | ||
{ | ||
public partial class ProjectDetailAjax : System.Web.UI.Page | ||
{ | ||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
if (!IsPostBack) | ||
{ | ||
DataTable dtHotSubject = ProductHelper.GetProductByID(Lib.QueryString.ProductID); | ||
if (dtHotSubject != null && dtHotSubject.Rows.Count > 0) | ||
{ | ||
ltrImage.Text = dtHotSubject.Rows[0]["Image"] != null && !string.IsNullOrEmpty(dtHotSubject.Rows[0]["Image"].ToString()) ? dtHotSubject.Rows[0]["Image"].ToString() : string.Empty; | ||
ltrContentProject.Text = dtHotSubject.Rows[0]["ProductDescription"].ToString(); | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.