如何从aspx.vb页面调用javascript函数 [英] How to call javascript function from aspx.vb page

查看:113
本文介绍了如何从aspx.vb页面调用javascript函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我在javascript中有一个函数.
我需要从aspx.vb页面调用此函数.
目前我正在使用dotnet 1.1
我该怎么办?
我使用了以下代码,
昏暗的类型=我.[GetType]()
Page.RegisterStartupScript("t","SetBox()")
但是它不起作用..
请帮我..



谢谢,
Senthilnathan

Hi Friends,
I have a function in javascript.
I need to call this function from aspx.vb page.
Currently I''m working on dotnet 1.1
How can I do this?
I have used the below code,
Dim t As Type = Me.[GetType]()
Page.RegisterStartupScript ("t","SetBox()")
But its not working..
Please help me on this..



Thanks,
Senthilnathan

推荐答案

^ ]

http://www.devcurry.com/2009/01/execute-javascript- function-from-aspnet.html [ ^ ]
http://www.shotdev.com/aspnet/aspnet-vbnet-web-web-control-event-handler/aspnet-vbnet-call-javascript-function/[^]

http://www.devcurry.com/2009/01/execute-javascript-function-from-aspnet.html[^]


朋友,

终于找到了解决办法.

Page.RegisterStartUpScript("t","SetBox();")

工作正常.


谢谢.
Hi Friends,

finally I got the solution.

Page.RegisterStartUpScript("t","SetBox();")

it''s working fine.


Thanks.


这篇关于如何从aspx.vb页面调用javascript函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆