jwite2003
04-01-2003, 08:53 PM
Hi,
Two quick questions. How does the OnItemCommand DataGrid event work? I was trying to use it to call a JavaScript function, but keep getting the following error message:
Compiler Error Message: CS0117: 'ASP.WebForm2_aspx' does not contain a definition for 'ShutWin'
Here's the 'ShutWin' Function code:
function ShutWin()
{
self.close();
}
I have also tried it with window.close() in place of self.close()
Both ways I get the same error message. I have also tried calling window.close() & self.close() when the OnItemCommand event occurs... In this case I get:
window not defined or self not defined respectively.
My second question is if it is possible to set a session variable inside the <Script Language=Javascript></Script> tags?
I'm working in ASP.NET(Visual C# code behind).
ASP.WebForm2_aspx is being generated from window.open('WebForm2.aspx') in WebForm1.aspx.
Thanks in advance for any insights,
Two quick questions. How does the OnItemCommand DataGrid event work? I was trying to use it to call a JavaScript function, but keep getting the following error message:
Compiler Error Message: CS0117: 'ASP.WebForm2_aspx' does not contain a definition for 'ShutWin'
Here's the 'ShutWin' Function code:
function ShutWin()
{
self.close();
}
I have also tried it with window.close() in place of self.close()
Both ways I get the same error message. I have also tried calling window.close() & self.close() when the OnItemCommand event occurs... In this case I get:
window not defined or self not defined respectively.
My second question is if it is possible to set a session variable inside the <Script Language=Javascript></Script> tags?
I'm working in ASP.NET(Visual C# code behind).
ASP.WebForm2_aspx is being generated from window.open('WebForm2.aspx') in WebForm1.aspx.
Thanks in advance for any insights,