I have an aspx page named PartSearch.aspx. This is in root directory. I want to popup this page using window.showModalDialog from master page (by clicking a Hyperlink in master page) . So from master page
i am using the following function using java script in hyperlink onClientClick
event
- var strURL = "PartSearch.aspx";
-
var strReturn = window.showModalDialog(strURL,null,'status:yes;dialogWidth:550px; dialogHeight:500px;dialogHide:false;help:no;scroll:no;resizable:no;');
-
return true;
This is working fine from any content page in root directory. If i am clicking the same from any content page which is in a sub folder the url is changing to root\subfolder\PartSearch.aspx" ( it is searching PartSearch.aspx in that subfolder ) . How to avoid this. I want to popup the 'PartSearch.aspx' from any content page which(content page) may be in subfolder.
How to do this.
Thanks