Click here to Skip to main content
15,917,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have the following code in aspx.vb ( code behind page)


Me.RegisterClientScriptBlock("CloseMe_2", "<script language='javascript'>" & _
"alert(document.forms(0).txtIdentifierXml.value);" & _
" window.returnValue = document.forms(0).txtIdentifierXml.value;" & _
" </script>")

I want tp put debugger in that code to check the value.

please help me
Posted
Comments
Dasaradhi_r 10-Sep-12 11:26am    
Is your problem resolved?

1 solution

The line of code you have given just registers the second argument to the client script block. Which means it will be given to the browser to execute.

In other words the code will not be executed here but it will be executed at the browser.(After it is a javascript, bound to work with browser only).

Which value you want to see here? Is it txtIdentifierXml.value?
If yes, As stated above that value will not be available here. When the script is executed you should get the value in the alert.

Provided your document.forms(0).txtIdentifierXml is not null
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900