N
Nick P
Is it possible to use javascript within a link label link in C#?
I want to call up a web page from a link label but without any scroll
bars and have it a certain size. I am trying to use the
javascript:window.open
this.lbtnArrangeColumns.Links[0].LinkData =
"javascript:window.open('http://localhost/Test.aspx','access','width=600px,height=550px,scrollbars=no')";
private void Test(object sender,
System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(e.Link.LinkData.ToString());
}
However it opens a browser window with [Object] in it and then opens
my smaller custom window. Can any one tell me how to prevent it
opening the first browser window.
Thanks,
np
I want to call up a web page from a link label but without any scroll
bars and have it a certain size. I am trying to use the
javascript:window.open
this.lbtnArrangeColumns.Links[0].LinkData =
"javascript:window.open('http://localhost/Test.aspx','access','width=600px,height=550px,scrollbars=no')";
private void Test(object sender,
System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(e.Link.LinkData.ToString());
}
However it opens a browser window with [Object] in it and then opens
my smaller custom window. Can any one tell me how to prevent it
opening the first browser window.
Thanks,
np