改写提示函数

teleagle2 2004-08-15 10:38:39
原asp的代码如下:
----------
sub web_js_msg(msg_type,msg_var,msg_url)
call cookies_load()
if msg_type=0 then
response.write "alert("""&msg_var&""");location.href="""&msg_url&""";"
exit sub
end if
response.write joekoe_cms.js_type("alert("""&msg_var&""");location.href="""&msg_url&""";",3)
end sub
-----------
要将其改为在asp.net(vb)中使用,该如何改写,请大家指点一二
...全文
168 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
rickjelly2004 2004-08-16
  • 打赏
  • 举报
回复
http://www.developerfusion.com/utilities/convertvbtocsharp.aspx
teleagle2 2004-08-16
  • 打赏
  • 举报
回复
不行啊,有人能帮我吗?将这个asp代码,改成相同功能的asp.net(vb),先谢谢了
-----------------------
sub web_js_msg(msg_type,msg_var,msg_url)
if msg_type=0 then
response.write "alert("""&msg_var&""");location.href="""&msg_url&""";"
exit sub
end if
response.write js_type("alert("""&msg_var&""");location.href="""&msg_url&""";",3)
end sub

triout 2004-08-15
  • 打赏
  • 举报
回复
sub web_js_msg(byval msg_type as integer,byval msg_var as string,byval msg_url as string)
call cookies_load()
if msg_type=0 then
response.write "alert("""&msg_var&""");location.href="""&msg_url&""";"
exit sub
end if
response.write joekoe_cms.js_type("alert("""&msg_var&""");location.href="""&msg_url&""";",3)
end sub

16,718

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧