[jQuery] problem while using jquery thickbox with asp.net

[jQuery] problem while using jquery thickbox with asp.net


Hello,
I am asp.net developer, recently I have started to use jquery for
the reach ui on my web application.
I am using Jquery thickbox to implemnt thickbox on my page
***********************************************************************
Private Sub cmdAddTreatment_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles cmdAddTreatment.Click
Me.ScriptManager1.RegisterStartupScript(Me, Me.GetType(),
"MyThickbox", $(document).ready(function(){ tb_show('Add Treatnebt
For Restorative Care Flow','AddTreatMentforRestorativecareflow.aspx?
residentid=" & mArrResident(RESIDENTARRAYLIST.RESIDENTID) &
"&TreatmentID=0&TreatmentMonth=" & cmbMonth.SelectedValue &
"&TreatmentYear=" & cmbYear.SelectedValue &
"&height=550&width=600&modal=true'); });", True)
End Sub
***********************************************************************************
now popup is open currectly but when i click on the button which is
located on "Addtreatmentforrestorativecareflow.aspx" to exectute code
for the event code will execute perfectly ,
but it will throw an exception
[Exception... "'Sys.ArgumentTypeException:
Sys.ArgumentTypeException: Object of type 'Sys._Application' cannot be
converted to type 'Sys._Application'. Parameter name: instance' when
calling method: [nsIDOMEventListener::handleEvent]" nsresult:
"0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>"
data: no]
and popup means chlid page open up as normal page