Those two you posted are equivalent. What you probably meant is that another
is with @ (at) and another isnt? Anyway, GetAttribute takes the local name
of the attribute and @ is not needed in the name. e.g
nav.GetAttribute("attribute_name",""). Does the attribute belong to some
namespace?
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"DN" <as*****@hotmail.com> wrote in message
news:%2*****************@tk2msftngp13.phx.gbl...
This works:
nav.GetAttribute("@ATTRIBUTE","");
This doesn't:
string strTemp = "@ATTRIBUTE";
nav.GetAttribute(strTemp,"");
Anybody know a way around this?