hi,
I want to test calling a javascript function from my .net app. It's a pretty simple thing, or so I thought. But, I cannot get it to work. I want to display a web page when I click on a button. This is the code I have for it.
This is in page1.aspx:
<script type="text/javascript">
Sub Openw()
{
window.showModalDialog(" ;
}
Then, in the button code I have this:
onClientClick="Openw();"
Well, nothing happens when I click on it. I know it must be right in front of me, but I can't see it. I must be missing something. Can you tell me what? thanks
I want to test calling a javascript function from my .net app. It's a pretty simple thing, or so I thought. But, I cannot get it to work. I want to display a web page when I click on a button. This is the code I have for it.
This is in page1.aspx:
<script type="text/javascript">
Sub Openw()
{
window.showModalDialog(" ;
}
Then, in the button code I have this:
onClientClick="Openw();"
Well, nothing happens when I click on it. I know it must be right in front of me, but I can't see it. I must be missing something. Can you tell me what? thanks