Changing an event from another page.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Greetings

I've got this parent window which opens a child window, once the child window closes it refreshes the parent window. there is a panel control in the parent window which i'm using to hide some controls in there. what i'm trying to archive here is once the close button in the child window in fired up, i want it to handle the event in the parent window. below are my codes, hope you can help me

Dim objPanel As New GATTA.InstanceMgmt ' GATTA is the prj name and InstanceMgmt is the class name. the parent clas
objPanel.pnlDistributor.Visible = True

i keep getting this error..

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object

Source Error:

Line 49: 'Successful save and its time to show the hidden controls
Line 50: Dim objPanel As New DATTApp.InstanceMgm
Line 51: objPanel.pnlDistributor.Visible = Tru
Line 52:
 
Hi,

If I got you right you want to play with div visibility on parent page
after called (dialog) window return values back to the calling page. if
this the case its better to achieve it using client side script and
DHTML. Round trips to server are useless here.

if you want server side event on calling page to be happened when dialog
window return value you can use client side script by submitting form or
calling __DoPostBack with right parameters and cause post back.

HTH

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Back
Top