A
axapta
Hi Guys,
I'm using this code in my asp.net page. It runs from a button webcontrol.
Dim sbJScript As String
sbJScript = "<script language = ""javascript"">"
sbJScript = sbJScript & "window.alert('Please choose either
Allocations or Homelessness');"
sbJScript = sbJScript & "window.close();"
sbJScript = sbJScript & "</script>"
litScript.Text = sbJScript
the alert doesn't appear and I get the following error: object reference not
set to an instance of an object. This occurs on the following line:
litScript.Text = sbJScript
How can I get an alert to appear client-side.
TIA
I'm using this code in my asp.net page. It runs from a button webcontrol.
Dim sbJScript As String
sbJScript = "<script language = ""javascript"">"
sbJScript = sbJScript & "window.alert('Please choose either
Allocations or Homelessness');"
sbJScript = sbJScript & "window.close();"
sbJScript = sbJScript & "</script>"
litScript.Text = sbJScript
the alert doesn't appear and I get the following error: object reference not
set to an instance of an object. This occurs on the following line:
litScript.Text = sbJScript
How can I get an alert to appear client-side.
TIA