G
Gary Coutts
Hi,
I am generating a popup window for data entry using the javascript
window.open function:
window.open('ViewItem.aspx', Index, WindowSetUp) ;
I need to generate some controls dynamically in ViewItem.aspx, the type of
controls generated are dependant on Index.
I need to pass the Index value to ViewItem.aspx and I am using a hidden
control (hCatIndex) and small java function to store the info:
function PassData()
{
var CatIndex ;
CatIndex = document.getElementById("hCatIndex") ;
CatIndex.value = window.dialogArguments ;
}
PassData() is run when the page is loaded, the problem is that the script is
run after the Page_Load() of ViewItem and I need the info before this.
Can I get the script (PassData) to run before Page_Load ?
Is this a valid way to pass data between Client and Server or is there a
better way.
I am using Visual Studio .Net 2003.
Any ideas or comments would be most appreciated.
Best Regards
Gary Coutts
I am generating a popup window for data entry using the javascript
window.open function:
window.open('ViewItem.aspx', Index, WindowSetUp) ;
I need to generate some controls dynamically in ViewItem.aspx, the type of
controls generated are dependant on Index.
I need to pass the Index value to ViewItem.aspx and I am using a hidden
control (hCatIndex) and small java function to store the info:
function PassData()
{
var CatIndex ;
CatIndex = document.getElementById("hCatIndex") ;
CatIndex.value = window.dialogArguments ;
}
PassData() is run when the page is loaded, the problem is that the script is
run after the Page_Load() of ViewItem and I need the info before this.
Can I get the script (PassData) to run before Page_Load ?
Is this a valid way to pass data between Client and Server or is there a
better way.
I am using Visual Studio .Net 2003.
Any ideas or comments would be most appreciated.
Best Regards
Gary Coutts