Hi,
try something like this:
<%#GetNodeIDBySKUNumber(Eval("SKUNumber")) %>
<script type="text/c#" runat="server">
private int GetNodeIDBySKUNumber(object skunumber)
{
var doc = CMS.DocumentEngine.DocumentHelper.GetDocuments("product.classname").OnCurrentSite().TopN(1).Columns("NodeID").WhereEquals("SKUNumber", ValidationHelper.GetString(skunumber, "")).FirstObject;
if (doc != null)
{
return doc.NodeID;
}
return 0;
}