VB.Net的Javascript [英] Javascripts With VB.Net

查看:70
本文介绍了VB.Net的Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI Friends,

我正在将Web应用程序与VB后面的代码配合使用

我比BUtton事件有一个按钮,我在onclick事件中称为Javascripts

javascript验证功能,但页面回传到服务器.

你能给我解决的办法吗?

谢谢

VIjay.S

HI Friends,

i am using web application with code behind VB

i have one button in than BUtton event i called Javascripts in onclick event

the javascripts validate funcation but the page post back to server.

can you give me solutions for that one.

THanks

VIjay.S

推荐答案

onclient 上调用Javascript函数,而不是按钮的click事件.在javascript函数中,如果验证失败,则返回false否则返回true..
Call Javascript function on onclient rather than click event of button..In javascript function when validation is fail then return false otherwise return true..


这篇关于VB.Net的Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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