本文发表在 rolia.net 枫下论坛for question1, I think u just misunderstood, of course I know how to popup a window with HyperLinkField......what I said is, HyperLinkField won't let you call window.open(don't get me wrong,this is javascript) with changing window's properties. for example, following code is in my current code:
window.open('CustomersEdit.aspx?Status=New','CustomersEdit','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=319,height=177,left = 490,top = 362')
if I use this in HyperLinkField.NavigateUrl="", the popup window's size doesn't change.
the reason I googled:
This issue with hyperlink field unable to run a javascript function has been around for a while. Microsoft confirmed it's a bug. So currently there's NO WAY to make a hyperlink field running a script. Embed the script function and it won't generate a link. As for the work-around using ItemTemplate, there's no need for all that code.
for question 3, I will try to reproduce the problem today in a new project. I will let you know the result. It shouldn't happen like that.
anyway, thanks for input.更多精彩文章及讨论,请光临枫下论坛 rolia.net
window.open('CustomersEdit.aspx?Status=New','CustomersEdit','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=319,height=177,left = 490,top = 362')
if I use this in HyperLinkField.NavigateUrl="", the popup window's size doesn't change.
the reason I googled:
This issue with hyperlink field unable to run a javascript function has been around for a while. Microsoft confirmed it's a bug. So currently there's NO WAY to make a hyperlink field running a script. Embed the script function and it won't generate a link. As for the work-around using ItemTemplate, there's no need for all that code.
for question 3, I will try to reproduce the problem today in a new project. I will let you know the result. It shouldn't happen like that.
anyway, thanks for input.更多精彩文章及讨论,请光临枫下论坛 rolia.net