Hi ever body

I have just created a gridview and on click event i want to open information at bottom existing iframe. I have follow this code:

javascript.
function showMessage(id)
{
var ids = id;
//frames['showPage'].location.href= 'welcome.aspx?m essageid=' + id;
document.getEle mentById('myMes sage').location .href=id;
}

C# Code

e.Row.Cells[1].Attributes.Add ("onclick",...