I have a weird thing going on (at least weird in my eyes). Here is my function
Which is wired up to a dynamically created button (inside of an asp.net datagrid). Here is the result from looking at the source.
So you would think that "00753272" would be the result in the alert box (or maybe just 753272).
However this gives me...251578.
This isn't in the source anywhere so I don't see where it is coming from. A few more things on the page are like that too, but the majority of buttons work correctly.
Can anyone help me out here?
Thanks in advance,
J
Code:
function ShowDetails(pNum)
{
var Command = "1:" + pNum;
var context = new Object();
context.CommandName = "GetDetails";
alert(pNumber);
}
Which is wired up to a dynamically created button (inside of an asp.net datagrid). Here is the result from looking at the source.
Code:
<input type="button" id="btnName" onclick='ShowDetails(00753272)' style="background:none; cursor:hand; color:Aqua; border-style:none; font-weight:bold;" value='SMITH , JOHNNY DALE' />
So you would think that "00753272" would be the result in the alert box (or maybe just 753272).
However this gives me...251578.
This isn't in the source anywhere so I don't see where it is coming from. A few more things on the page are like that too, but the majority of buttons work correctly.
Can anyone help me out here?
Thanks in advance,
J