I would try it this way:
<INPUT id=btnFind
onclick="document.getElementById('lbContractNum').innerHTML =
window.showModalDialog('FindContract.aspx?num='+document.getElementById('lbContractNum').innerHTML
+ '&name=' + document.getElementById('lbContractName').innerHTML,
'','width=300,height=300');"
type=button size=5 value=Find... name=findContract>
Basically, you want to separate the values you're passing with a "&"
character. Another thing, you normally pass values like this using the
"page.aspx?arg1=val1&arg2=val2" format, instead of "page.aspx?val1&val2".
Steve C.
MCSD,MCAD,MCSE,MCP+I,CNE,CNA,CCNA
> Hi all,
>
[quoted text clipped - 28 lines]
> thanks for your help,
> Stephen
stephen - 27 Aug 2007 19:28 GMT
Hi Steve,
Thanks for the information but now I am getting new errors:
I have used this code in the rowdatabound, how do i modify this to take 2
values?
protected void dgCustomer_RowDataBound(object sender, GridViewRowEventArgs
e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton myLink = (LinkButton)e.Row.Cells[0].Controls[0];
myLink.OnClientClick = "window.returnValue=" + e.Row.Cells[1].Text +
";window.close();return false;";
}
}
I want to return e.row.cells[2].text
I tried
myLink.OnClientClick = "window.returnValue=" + e.Row.Cells[1].Text +
"window.returnValue=" + e.Row.Cells[2].Text +
";window.close();return false;";
Thanks,
Stephen
>I would try it this way:
>
[quoted text clipped - 47 lines]
>> thanks for your help,
>> Stephen