Use this exactly for your case:
protected void button1_Click(object sender, EventArgs e)
{
Response.Write("<script type='text/javascript'>window.open('DeviceInformation.aspx?arg=" + e.CommandArgument + "','_blank');</script>");
}
I used the following:
if (e.CommandName == "AssetName")
{
Response.Write("<script type='text/javascript'>window.open('UsageInformation.aspx?arg=" + e.CommandArgument + "','_blank');</script>");
}
I get a new blank page with the correct url!
but if i use:
if (e.CommandName == "AssetName")
{
Response.Redirect("UsageInformation.aspx?arg=" + e.CommandArgument);
}
I get the page reloaded with the data.
So both ways i get the correct url:
http://localhost:4513/WebSite2/UsageInformation.aspx?arg=XFM_UG:#306:100099462
but unless i call the responce.redirect it will load blank. For example even if I copy that link into my browser it loads a blank page.
Very very close... any ideas?
Thanks for your help!