Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with calling javascript from .net 1

Status
Not open for further replies.

treviboy

Programmer
Dec 18, 2006
70
0
0
US
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
 
Gee whiz. Thank you for that. That was it. What a do-do bird I am. Appreciate it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top