基础问题,帮我把这几行c#改成asp的 (vbscript)
麻烦兄弟们了。。帮我把这段C#代码, 翻译成asp的 vbscript的
C# code:
if (paths != "")
{
if (videoType == "music" || videoType == "")
{
try
{
if (System.IO.Directory.Exists(Server.MapPath("/upfile/sound/" + paths + "/")))
{
this.plSound.Visible = true;
}
}
catch
{ }
}
if (videoType == "video")
{
plVideo.Visible = true;
}
}
我是这么写的,不过貌似会出错。。。
主要是中间那个if Server.MapPath 不会判断
VBScript code:
if paths != "" then
if videoType == "music" || videoType == "" then
if Server.MapPath("/upfile/sound/" + paths + "/")!="" then
this.plSound.Visible = true
相关问答:
有一个类
class adc
{
dim a,b,c
}
如何在另外一个类中取得类成员及成员个数
class getmenber
{
dim menbers()
function getmenbers(resclass)
'res为一未知类
'getmenber ......
function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
本人目前遇到一个难题,请各位高手、大侠帮帮忙。
我单击一个按钮时要把gridview中的数据一个一个的取出并把对应参数传递给前台的js。
我试了几种后台调前台的方式都没有成功,所以请大侠们帮帮小弟。
谢谢。
不 ......
A页面
<table width="200" border="1">
<tr>
<td>1</td>
<td>3</td>
<td><!--#include/top.html#-- ......
可能因为工作的原因 接触数据库这块比较少,之前都是做程序这块,数据库这块都有专门的人来做 分工都很明细 所以对数据库这一块完全不了解。前段时间 去面试了几家公司 几乎都是在数据库这块挂掉的 连个简单的SQ ......