基础问题,帮我把这几行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
相关问答:
http://www.zgjhjy.com/Test/PrimaryTest/Index.aspx
就是类似以上的在线测试系统,需要有一个后台的,语言是asp的,数据库是access的,还需要能在后台对信息进行添删改查的。谢谢各位了。。。
程序真的很多,不知 ......
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
''' <summary>
'' ......
我一个项目,有个插入操作,具体是这样的:
我有进货信息表。在出货时选择相应的进货信息,输入数量,选择部门后,点保存按钮,由于网络延时,点一下没有反映,于是用户就又点一下,导致一次插入了两条记录:
例:
......
服务器现在是。net 2.0的
我现在的项目就是asp.net mvc + linq的,现在服务器的环境配置用不了。
不知道有前辈碰到过这样的问题没。
难道服务器必须要装.net3.5 和 asp.net mvc
请前辈指点
不装你认为你要怎么 ......
protected void btnLogin_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection("Server = (local);user id = sa;pwd = 1;database = Login");
&nb ......